Been beating my head against the wall for awhile on a config issue. I’ve been using rclone for months now with great success, first on ACD and now on GSuite. My commandline/script is as follows (this is Linux, an unRAID install):
rm /mnt/rclone-bak.log # remove the old backup
mv /mnt/rclone.log /mnt/rclone-bak.log # create the new backup
rclone sync --log-file /mnt/rclone.log --max-size=40G --copy-links --transfers=4 –exclude '/FOO/.’ --bwlimit=10M --verbose /mnt/user/ google_crypt:/ --checkers=10 -v
This removes a logfile from the previous run 2 prior, copies over the existing current logfile, then kicks off rclone in verbose mode with output piped to a file. I can tail these files to monitor status or just open them (hint: do not place them in a directory being backed up). The bolded portion however is a real problem…
The directory structure has /mnt at root level, my data of interest is in /mnt/user/manydirectoriestobackup
I have recently moved data to a new shared directory we’ll call FOO under user. Foo is about 60gig of 50Kb files, it’s not something I require to be backed up and the tiny file sizes push rclone into spasms with the Google API so my backup never completes! I’m in a 403 tarpit… How the bloody hell do I skip the FOO directory? I have tried each of the following to no result:
(my asterisks are getting eaten by formatting but they’re there)
I have probably tried a few other combinations too! I have been told that the path should be relative to the one given to rclone for backup so I think I’ve got this right not giving it the full path. I have tried with and without a leading slash, I have tried dual and single quotes - I’m pretty sure single is correct. For bonus points there’s another share I’d ALSO like to skip so chaining two would be great but it’s much less critical as it’s simply a working directory.
I find lots of examples to skip lists of files from a text file but nothing to skip just one using --exclude that works for me. Can I have a syntax example please? Surely one of the ones above is right but unless I’ve lost track none worked for me.