Note the trailing / on the source path. It is important. Make sure you put
it there or rsync will not do what you expect (most likely). man rsync for more
info.
More importantly, understand what that trailing slash does so you can include it or not as appropriate.
A /path/to/directory means the directory itself. Using /path/to/directory/ refers to the contents of the directory, not to the directory.
Backup the contents of /etc to a backup directory in /var with "rsync -av /etc/ /var/backup". This will put all the files into /etc/backup.
Backup the /etc directory to /var/backup/etc with "rsync -av /etc /var/backup/". This will result in /var/backup/etc containing the files.
Make more sense?
-- Rodolfo J. Paiz rpaiz@xxxxxxxxxxxxxx
-- Psyche-list mailing list Psyche-list@xxxxxxxxxx https://listman.redhat.com/mailman/listinfo/psyche-list