Matt McCutchen schrieb:
Thanks for the help but I've still had no luck with this. The command now looks like: backupstoremove.py | rsync -av --progress --no-p --no-g --delete-before --stats --include-from=- --include=/media/300GIGHD/backups/dar/restore --exclude="*.dar" /media/300GIGHD/backups/dar/ /media/BACKUPUSBSTICK/backups/

I forgot: the --delete-excluded option is needed so that the exclude
does not protect destination directories from deletion.  Before you give
up, you might want to try again with that option.

Thanks, that looks like it's worked. However I've found that the effect is the same as doing an rm -f before the transfer - since --exclude=*.dar it removes all files, even the ones that are --include'd, and then starts the transfer from scratch. Just using rm keeps my script simpler and easier to read.

Regards

Tim

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to