Greetings --
I just downloaded and compiled rsync 2.6.4, which has the much-coveted
--remove-sent-files option!
Thank you for adding this feature. I use
rsync -rutvn --exclude-from=nosync --remove-sent-files /ssa/TV/2005/
/tv1/2005/
to move files selectively to a storage computer, but I want to avoid
including files that are currently
being captured. When I include today and a great relative yesterday like
this
*$(date +%F)*
*$(date --date="-1 day" +%F)*
in the nosync file, files like 2005-04-03_19:00_KCBS_60_Minutes.txt
still get included. I then try
rsync -rutvn --exclude=$(date +%F) --exclude=$(date --date="-1
day"
+%F) --exclude-from=/ssa/TV/scripts/nosync --remove-sent-files
/ssa/TV/2005/ /tv1/2005/
which works, but the strings are long and rsynch appears not to allow \
to break a long line (?)
Wouldn't it be useful to allow expressions in the exclude file?
David
On Sun, Apr 03, 2005 at 09:30:52PM -0700, David Liontooth wrote:> Wouldn't it be useful to allow expressions in the exclude file?I don't think so. And with the per-dir filter rules from 2.6.4, adding expressions would be a security problem (allowing arbitrary commands to be run on the remote system).> rsync appears not to allow \ to break a long line (?)No, that's a shell idiom. Rsync doesn't allow any continuation lines in its filter/include/exclude files. ..wayne..
Apparently Analagous Threads
- problem with exclude
- Overwriting symlinks on OSX
- How to remove files at source present on destination without transferring them
- [PATCH nbdkit v2 1/4] common/include: Add function for subtracting struct timeval.
- [PATCH nbdkit 1/2] common/include: Add function for subtracting struct timeval.