having problems including only certain files in rsync
I'm trying to rsync only those files (and the dirs that contain them) that are in a directory called "1920x1080". That directory is in $source/foo/bar/1920x1080
I'm trying to rsync like so: rsync -rptgoDLKvn --include="*1920*" $source $dest ... but it's still grabbing everything (the 'n' is in there for testing) It should be known that many of the directories (including "1920x1080") in the path are symlinks that point to all sorts of different places (some pointing outside of the tree). I've managed to get them all acting like real dirs (hence the long option list, thanks LQ), but can't manage to get the include working. I don't want to use a filter rules file as the include will eventually come from user input. any ideas? |
Since this has come around a couple of times without response, I'll pitch in and say maybe you should restate your problem. First, it works for me - as near as I can figure.
Code:
:mkdir sys/rsyncdest sys/tmp/rsynctest I'm not sure I can help because, while I swear by rsync and use it religiously, I just figured out what I wanted to do and put it in a script so I wouldn't have to think about it much again. :) The filters/include/exclude can be tricky, too. |
Quote:
Code:
mkdir /tmp/rsynctest Quote:
Quote:
Quote:
Quote:
|
All times are GMT -5. The time now is 05:10 PM. |