Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Mover script / rsync: excluding directories does not work?

Featured Replies

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? :)

  • Author

If I add

--exclude *.txt

the text files are ignored... but for directories  ???

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.

  • 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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.