Is there a way to exclude syncing any files inside any 'log' folders?

I am syncing (for backup purposes) the entire docker appdata volume on my NAS, just so that if I have a major error or failure I have a copy of it all to recover from.

However the .log files seem to be like 99% of what keeps getting re-synced, and those files are largely pointless, so I would like to just exclude them. Which I thought I had done by using -

--exclude 'logs/'
--exclude 'log/
' \

but I'm still getting lots of logs (in various /x/x/x/logs/etc directories) being synced and copied.

Is there a way?

1 Like


--exclude "logs/**"


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.