View previous topic :: View next topic |
Author |
Message |
Schmolch l33t
Joined: 16 Jun 2002 Posts: 746 Location: Germany
|
Posted: Tue Feb 22, 2005 6:54 am Post subject: rsync question |
|
|
Why does rsync / /mnt/backup --exclude "/" build a file-list, shouldn't it simply do nothing? |
|
Back to top |
|
|
shadow255 Guru
Joined: 04 Apr 2003 Posts: 412
|
Posted: Tue Feb 22, 2005 4:12 pm Post subject: |
|
|
The authors of the man page for rsync indicate that your command should not be used (following excerpt is from the EXCLUDE PATTERNS section):
Code: | The filenames matched against the exclude/include patterns are relative
to the destination directory, or "top directory", so patterns should
not include the path elements of the source or destination directories.
The only way in which a pattern will match the absolute path of a file
or directory is if the source path is the root directory. |
You may be thinking that since the source path is the root directory, your pattern should work, but I would say that "/" is very much indeed a path element of the root directory, so all bets are off. _________________ Vogon poetry is of course the third worst in the Universe. -- Douglas Adams, The Hitchhiker's Guide to the Galaxy |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|