Usage question for source at /
wayned at samba.org
Sun Jun 5 22:05:59 GMT 2005
On Sat, Jun 04, 2005 at 02:52:05PM -0500, Larry Alkoff wrote:
> How do I specify starting at the root directory? Is // correct?
Just use / on its own (since it is a trailing slash).
> rsync -uacHv --exclude="lost+found mnt proc public sys tmp" // /mnt/backup
You should read the section on the --exclude option more carefully.
You'll want something more like this:
--exclude=/lost+found --exclude=/mnt --exclude=/proc
--exclude=/public --exclude=/sys --exclude=/tmp
(Your command only excludes one very strange filename.) Alternately,
switch over to using --exclude-from=FILE with all the anchored names on
separate lines in the file.
More information about the rsync