NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
ReadyNASNVUser
Nov 26, 2020Apprentice
Syntax for rSync File Excludes via Web Backup Interface
OS Version 6.10.3 I've hunted high and low for the syntax to specify a folder and all subfolders to exclude via rSync web backup interface and can't find it. So sorry if this is a repeat post. ...
- Nov 27, 2020
I'm glad I could help.
ReadyNASNVUser wrote:
so that part of the UX ought to say on the exclude list something like "enter the name of the item (and sub-directories); paths are not required"
Better help would be useful. It's more complicated than you are thinking, as rsync is doing a pattern match (there is a way to put wildcards in the exclude string).
TV_Recordings/ would have given you an empty TV_Recordings folder on the destination.
TV* would have excluded any files or folders that started with TV
readme.txt would have excluded all files called readme.txt (no matter what folder they were in)
*.mp4 would have excluded all mp4 files (no matter what folder they were in)
You can include paths (using / ) but they are always relative (starting from the source folder, not the root of the volume). So you'd leave the share name out. If you had more than one folder called TV_Recordings you would need some path information. If I recall your folder tree correctly, Videos/TV_Recordings would have also worked (or *Videos/TV_Recordings)
StephenB
Nov 26, 2020Guru - Experienced User
I believe if just passes through what you enter to the rsync --exlude option.
You could try just entering TV_Recordings
ReadyNASNVUser
Nov 27, 2020Apprentice
Hi StephenB
I'll try that... never would have thought of that..
And the folder and all the sub-folders I need to exclude TV_Recordings is at Device/data/media/Videos/TV_Recordings... doesn't rSync need the path... or is doing a match on any string (regular expression?) put into the files/folders to exclude list?
And if the regex matches a directory does that means it will exclude all the sub-directories?
Have to say the UI is pretty opaque for this... not being an rsync expert...
Thanks for the help so far...
I'll report back if your initial idea works..
Antony
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!