rsync Permalink

Shell, rsync Added less than a year ago and last edited about a month ago

When I have 90% common files on my laptop and desktop, and I want to sync the remaining files without accidentally deleting anything, I run these commands:

$ rsync -pogz -urave ssh ~/localdir remote.computer:~/
$ rsync -pogz -urave ssh remote.computer:~/localdir ~/

Then, as you are sure you are now up-to-date on both machines, you can start deleting files on one, and then sync those deletions to the other with:

$ rsync --delete -pogz -urave ssh ~/localdir remote.computer:~/

Note:

rsync doesn't seem very good at moved files. It will try to copy the whole file across again if it has moved into another dir... check out the fuzzy option... and also this thread for further info.

Colophon

Django Python 960.gs Git Vim NetBSD Nginx

The Author

The author is a software engineer living in Australia. He sux at guitar, loves camping, doesn't like cake, does like coffee and is a lazy home brewer.

Meta

Help
Latest entries

*BSD Agile Apache Apple Athletics Beer Best-Practice Censorship Comedy Cool Crosswords Deployment Django English Exim Firefox Git Hardcore Health Interface irssi Javascript Jira Languages Linux Makefile Markdown Mathematics Mobile Broadband MySQL NetBSD nginx Nokia OSX Perl Photo Privacy Python Rant Requirements rsync Ruby Shell Slackware SQL SQLite SSH Standards Subversion Testing ThisBlog Vim VMWare (Fusion) VPN WDTEM X Yum zsh

Recent Entries

Perldoc Output
Yum
Possum
Git's Index
Jira Project Keys
The Coffee Shop
Git GUI
It is more important...
Questioning Unix (and Other) File Times
The Frog King Photo
Rain Cloud Photo
rsync
Timezone
utf8 in your Perl
Theatre Ceiling Photo
Some problems are so complex...
Colours in your PAGER
zsh vared
zsh magic-equals and double-star
Funny Tweets

Links

ChoppingBoard, Project365, RageQuit

♥ Actors/Artists/Characters