On Thu, Mar 24, 2011 at 3:24 PM, Kfir Lavi <lavi.k...@gmail.com> wrote: > Hi, > I want to rsync all the directories and files that contain the date > "2011.03.03". > Everything else should not be copied. > I did a lot of experiments and read web pages, but can't solve this > conundrum. > > kfir@goofy /tmp/rsync.test $ find > . > ./b > ./a > ./a/aaa > ./a/aaa/2011.03.03 > ./a/2011.03.04 > ./a/2011.03.03 > kfir@goofy /tmp/rsync.test $ rsync -avvn --include "*" --include > "**2011.03.03**" --exclude "*" a/ b/ > sending incremental file list > [sender] showing directory aaa because of pattern * > [sender] showing directory 2011.03.04 because of pattern * > [sender] showing directory 2011.03.03 because of pattern * > [sender] showing file aaa/2011.03.03 because of pattern * > delta-transmission disabled for local transfer or --whole-file > ./ > 2011.03.03/ > 2011.03.04/ > aaa/ > aaa/2011.03.03 > total: matches=0 hash_hits=0 false_alarms=0 data=0 > > sent 135 bytes received 30 bytes 330.00 bytes/sec > total size is 0 speedup is 0.00 (DRY RUN) > > kfir@goofy /tmp/rsync.test $ rsync -av --include "2011.03.03" a b -v > sending incremental file list > [sender] showing directory a/2011.03.03 because of pattern 2011.03.03 > [sender] showing file a/aaa/2011.03.03 because of pattern 2011.03.03 > delta-transmission disabled for local transfer or --whole-file > a/ > a/2011.03.03/ > a/2011.03.04/ > a/aaa/ > a/aaa/2011.03.03 > 0 100% 0.00kB/s 0:00:00 (xfer#1, to-check=0/5) > total: matches=0 hash_hits=0 false_alarms=0 data=0 > > sent 179 bytes received 47 bytes 452.00 bytes/sec > total size is 0 speedup is 0.00 > > kfir@goofy /tmp/rsync.test $ rsync -avvn --include "*" --include > "**2011.03.03**" --exclude "*" a b > sending incremental file list > [sender] showing directory a because of pattern * > [sender] showing directory a/aaa because of pattern * > [sender] showing directory a/2011.03.04 because of pattern * > [sender] showing directory a/2011.03.03 because of pattern * > [sender] showing file a/aaa/2011.03.03 because of pattern * > delta-transmission disabled for local transfer or --whole-file > a/aaa/2011.03.03 is uptodate > total: matches=0 hash_hits=0 false_alarms=0 data=0 > > sent 143 bytes received 31 bytes 348.00 bytes/sec > total size is 0 speedup is 0.00 (DRY RUN) > > kfir@goofy /tmp/rsync.test $ rsync -avvn --include "*/" --include > "**2011.03.03**" --exclude "*" a b > sending incremental file list > [sender] showing directory a because of pattern */ > [sender] showing directory a/aaa because of pattern */ > [sender] showing directory a/2011.03.04 because of pattern */ > [sender] showing directory a/2011.03.03 because of pattern */ > [sender] showing file a/aaa/2011.03.03 because of pattern **2011.03.03** > delta-transmission disabled for local transfer or --whole-file > a/aaa/2011.03.03 is uptodate > total: matches=0 hash_hits=0 false_alarms=0 data=0 > > sent 143 bytes received 31 bytes 348.00 bytes/sec > total size is 0 speedup is 0.00 (DRY RUN) > > > Hope it is solvable. > Regards, > Kfir >
Bump, No body uses rsync? Kfir