On Mittwoch, 9. Juli 2008, Brian K. White wrote:
Just for the record, even though I use rsync _all_ the time, all day every day numerous times on lots of boxes, aross several platforms etc... Even so, I routinely have to pore over the man-page to see if a particular option exists, or what it's exact behavior is supposed to be,
Welcome to the club. ;-)
and then I still have to do several trial&error test runs until I get the effect I want.
Right. As a general rule of thumb, always try with the "-n" (or --dry-run)
option first, and only if that looks good, take away the "-n".
I can never remember if I need
rsync -av /some/where/mydir .
or
rsync -av /some/where/mydir/ .
which _is_ a huge difference (one of them creates ./mydir and copies the files
below that point, the other copies them to the current directory right away).
It's a powerful beast, and like all powerful beasts, it's not easy to be
tamed. ;-)
CU
--
Stefan Hundhammer