Copy Sonarr backups on Synology

Sonarr version (exact version): 2.0.0.4230
Mono version (if Sonarr is not running on Windows): 4.2.2 - Synology
OS: Windows 10
Description of issue:

I would like to copy the Sonarr backup files:

/usr/local/nzbdrone/var/.config/NzbDrone/Backups/scheduled

On a regular basis. Unfortunately I have been unable to do this as the folder is in the system area and only the root user in SSH. I have tried a symbolic link, however, in the shared folder I cannot access it.

Has anyone done this? or have any ideas?

Do you have access to root? If so, you might be able to do a cron job rsync/etc.

Yep, I do. I finally worked out a way to do it on Synology.

For those who also want/need to keep a copy of the backup files, here is how I did it:

Create a batch/sh file with the following command:

yes | cp -rf /usr/local/nzbdrone/var/.config/NzbDrone/Backups/scheduled/* /volume2/Backup/Sonarr

or using rsync:

rsync -avh /usr/local/nzbdrone/var/.config/NzbDrone/Backups/scheduled/ /volume2/Backup/Sonarr/

Saved that file as “copy-script”

Then added the following line to the crontab:

00 12 * * 1 root copy-script

This runs the copy script every week on Monday at midday. You can change the frequency by changing the numbers in the crontab line.

I am not too familiar with rsync, so I used cp instead. So far it looks like it is working.

rsync is a great product because it only copies changed files. If you wanted to look into it, it might be called something else on Synology but same tech.

Alright, I will try rsync (it is included in Synology). For those reading this in the future, this is the command I used:

rsync -avh /usr/local/nzbdrone/var/.config/NzbDrone/Backups/scheduled/ /volume2/Backup/Sonarr/

1 Like

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