From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 From: fgergo@gmail.com Date: Fri, 25 Oct 2013 14:02:20 +0200 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: [9fans] push.sh inspired by the dump file system Topicbox-Message-UUID: 88675d0e-ead8-11e9-9d60-3106f5b1d025 I usually use linux and windows. I always liked the functionality of the dump file system and venti, but I did not want to maintain anything for the backup of my miscellaneous private files. About a year ago I wrote push.sh. I use it to simply push file trees between different non-plan9 machines. pros: - there is nothing to deploy, setup, initialize or maintain - pushed data is accessed similarly to the dump file system con: - end result is not the same only similar to dump or venti On windows I usually do: c:\myhome>pushtomyvps.bat lets_keep_this_tree_somewhere_else_as_well Where pushtomyvps.bat is 1 line: tar cf - %1|gzip|plink -batch -load myvpssessionid -m c:\bin\push.sh I've been using this script for a year now, you might find it useful as well. >>From https://code.google.com/p/pusher/ Usage on local fs: tar cf - myfiletree|gzip|push.sh on Linux using ssh between remote file trees: tar cf - myfiletree|gzip|ssh user@host "`cat ~/bin/push.sh`" on Windows using plink (e.g. with saved session information) between remote file trees: tar cf - myfiletree|gzip|plink -batch -load mysavedputtysession -m push.sh Description push.sh transfers and stores data received on standard input in: ~/pushed/YYYY/MMDD/0/0.tar.gz where YYYY/MMDD/ represents the current date similar to the plan9 dump filesystem. If ~/pushed/YYYY/MMDD/0/ already exists 1/1.tar.gz is created, if 1/ exists 2/2.tar.gz is created etc.