Re: Rsync

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 16:28 4/23/2003 -0400, you wrote:
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

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux