Skip to content

Instantly share code, notes, and snippets.

@andstor
Created February 18, 2022 00:47
Show Gist options
  • Save andstor/5a7e58c6a8e3da67e33c0f19e03ead02 to your computer and use it in GitHub Desktop.
Save andstor/5a7e58c6a8e3da67e33c0f19e03ead02 to your computer and use it in GitHub Desktop.
Synology Drive Client blacklist
[Version]
major = 1
minor = 1
[Common]
black_dir_prefix = "/Backup", "/Moments"
max_length = 0
max_path = 0
[File]
black_suffix = ".lnk", ".pst", ".swp", ".temp", ".tmp"
max_size = 0
[Directory]
black_name = ".git", ".venv", ".cache", ".history", ".node-gyp", "bower_components", "node_modules"
[EA]
@andstor
Copy link
Author

andstor commented Feb 18, 2022

Instructions

Synology doesn't support ignoring directory from the GUI. However, it can be achieved by manually editing the blacklist.filter file manually. One blacklist.filtter file exists for each SynologyDrive syncing directory.

Under [Directory] add the directory names you want to ignore to the black_name list.

Synology Drive Client needs to be restarted after blacklist is updated. If file ignore rules are changed from the GUI, the directory rules are discarded.

File location

Mac: ~/.SynologyDrive/data/session/#/conf/blacklist.filter
Windows: ~\AppData\Local\SynologyDrive\data\session\#\conf

@andstor
Copy link
Author

andstor commented Apr 30, 2023

Update

Synology has updated its client. New file to edit is called filter.

New file location

Mac: ~/Library/Application support/SynologyDrive/SynologyDrive.app/Contents/Resources/
Windows: ``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment