Re:My 10 UNIX Command Line Mistakes
by lazyant on Sunday February 27, 2011 @01:09PM
(#2268383)
I've been burnt the first time I used 'rsync'. It seems natural that when you are in a computer and you do "something another_computer" you are in the 'client' and the 'another_computer' is the 'server', like when you check out an svn or whatever code locally from a server. rsync has this backwards from this convention, I added the -delete option to 'merge' files (so it didn't copy the ones I already had locally) and I ended up deleting files in the 'server'.
[ Parent
| on HN ]
rsync follows the convention set by mv, cp, ln, etc. Source then destination.
Even git clone follows this convention.
When doing stuff like this for the first time, I like to try it out on some test files before going for the real thing.