News for hackers. Stuff that matters.
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'.
Re:My 10 UNIX Command Line Mistakes by sjs on Sunday February 27, 2011 @01:25PM (#2268434)
rsync follows the convention set by mv, cp, ln, etc. Source then destination.

Even git clone follows this convention.

Re:My 10 UNIX Command Line Mistakes by gnosis on Sunday February 27, 2011 @01:17PM (#2268409)
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.
Re:My 10 UNIX Command Line Mistakes by mryan on Sunday February 27, 2011 @03:48PM (#2268902)
"rsync --dry-run src dest" will show you what rsync would do, without actually doing anything.