On Tue October 23 2007 22:39, Robert Smits wrote:
> I have a number of systems I'd like to regularly back up with rsync.
> Let me describe them.

I created these two scripts, which allow me to synchronize things
between office, home desktop and laptop, in any direction I want, only
updating what is newer under a parent directory and only deleting files
after asking for confirmation.

I found that sometimes I forgot that I created a new file in the office,
say under Projects/ABC/, and when I work from home and I want to
"syncsend Projects", it asks if I want to delete that new file. I then
say "no" and subsequently run  "syncget Projects" to bring that file to
my desktop at home.

You want to save these scripts in your ~/bin/ directory and make them
executable (right-click/Properties  or  chmod ug+x sync*).
Edit the files to have your own default destination and maybe adapt the
default exclusions.
You also want to enter the option "--dry-run" at the prompt when you run
it the first time, just to make sure the scripts do what you want,
before it really counts.

Enjoy!
-- 
Carlos FL

Who is General Failure, and why is he reading my disk?

Attachment: syncget
Description: application/shellscript

Attachment: syncsend
Description: application/shellscript

Reply via email to