Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rsync question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Schmolch
l33t
l33t


Joined: 16 Jun 2002
Posts: 746
Location: Germany

PostPosted: Tue Feb 22, 2005 6:54 am    Post subject: rsync question Reply with quote

Why does rsync / /mnt/backup --exclude "/" build a file-list, shouldn't it simply do nothing?
Back to top
View user's profile Send private message
shadow255
Guru
Guru


Joined: 04 Apr 2003
Posts: 412

PostPosted: Tue Feb 22, 2005 4:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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