November 30, 200916 yr The download folder for SabNZBd is located on my cache disk in the folder _download (full path: /mnt/cache/_download . I want to exclude this folder from the mover script, this should work by adding the --exclude option. Somehow, I can't get this to work. -exec rsync -i -dIWRpEAXogt --numeric-ids --exclude='_download/' --inplace --remove-source-files {} /mnt/user0/ \; \) -o \ -exec rsync -i -dIWRpEAXogt --numeric-ids --exclude _download/ --remove-source-files {} /mnt/user0/ \; \) -o \ -exec rsync -i -dIWRpEAXogt --numeric-ids --exclude /mnt/cache/_download --inplace --remove-source-files {} /mnt/user0/ \; \) -o \ -exec rsync -i -dIWRpEAXogt --numeric-ids --exclude _*/ --inplace --remove-source-files {} /mnt/user0/ \; \) -o \ I tried various combinations of the above, but I still can't get it too work. Folders inside the _download folder are still being copied and deleted by the mover script. I've searched the internet for the appropriate syntax and they all use a slightly different one, none of them work. Please help?
November 30, 200916 yr Author If I add --exclude *.txt the text files are ignored... but for directories
November 30, 200916 yr There are two "rsync" lines in the mover script, the first is used ONLY for files, the second ONLY for directories. You will either need to modify both, or you will need to add logic in the top-most "find" command to exclude the directory. One solution posed earlier is to ignore top level directories with a leading "_" in addition to the currently ignored top level directories that start with a leading "." The replacement regular expressions would then look like: -type f -regex '[.]/[^._].*/.*' and -type d -regex '[.]/[^._].*' Note... I added one underscore character in each of the two regular expressions. Joe L.
December 1, 200916 yr Author Thanks, that did the trick! Although I would still prefer the --exclude to work properly, at least the mover script will not interfere while SabNZBd is downloading...
Archived
This topic is now archived and is closed to further replies.