Luke has no name
September 22nd, 2008, 02:33 AM
Let's say I have /home/luke/from and /home/luke/to directories.
from:
Music/
Videos/
Videos/blah.avi
hello.txt
to:
Music/
Videos/
I want to rsync the from/ and to/ directories using --delete on all files and folders in from/ EXCEPT the Videos/ folder. In other words, the to/ dir has files from/ doesn't, and I want to keep them.
Can I do
rsync -avze ssh --delete /home/luke/to/ /home/luke/from/ --exclude /home/luke/to/Videos/
?? I don't know the --exclude tag too well.
from:
Music/
Videos/
Videos/blah.avi
hello.txt
to:
Music/
Videos/
I want to rsync the from/ and to/ directories using --delete on all files and folders in from/ EXCEPT the Videos/ folder. In other words, the to/ dir has files from/ doesn't, and I want to keep them.
Can I do
rsync -avze ssh --delete /home/luke/to/ /home/luke/from/ --exclude /home/luke/to/Videos/
?? I don't know the --exclude tag too well.