29 Mar
2006
29 Mar
'06
21:56
On Wednesday 29 March 2006 13:34, Ken Schneider wrote: [snip]
I would use rsync -varpltz --stats /home/hylton/ /media/backup/home
Make sure you include a closing / on the source so that you get a recursive copy.
That's not what the closing / does. According to the man page, a trailing / on the source changes the behavior so that "You can think of a trailing / on a source as meaning 'copy the contents of this directory' as opposed to 'copy the directory by name' " Recursive copying is controlled by -r. In your example, the contents of /home/hylton would be copied to /media/backup/home. There would be no /media/backup/home/hylton directory created--probably not what the OP expects. Jim