Backup and Restore

Mark McDowall edited this page Oct 25, 2016 · 21 revisions

Backing up Sonarr

Using built-in backup

  1. Go to System: Backup in the Sonarr UI
  2. Click the Backup button
  3. Download the zip after the backup is created for safe keeping

Using file system directly

  1. Find the location of the AppData directory for Sonarr

  2. Stop Sonarr - This will prevent the database from being corrupted

  3. Copy the contents to a safe location

Restoring from Backup

Restoring to an OS that uses different paths won't work (Windows to Linux, Linux to Windows, Windows to OS X or OS X to Windows), moving between OS X and Linux may work, since both use paths containning / instead of \ that Windows uses, but is not supported.

Using zip backup

  1. Re-install Sonarr
  2. Run Sonarr once to get the AppData directory location
  3. Stop Sonarr
  4. Delete the config.xml & nzbdrone.db* files (Including the .db-wal/.db-journal files if they exist)
  5. Extract the backup zip file & restore the files extracted from the zip
  6. Start Sonarr
  7. As long as the paths are the same, everything will pickup where it left off

Using file system backup

  1. Re-install Sonarr
  2. Run Sonarr once to get the AppData directory location
  3. Stop Sonarr
  4. Delete the contents of the AppData directory (Including the .db-wal/.db-journal files if they exist)
  5. Restore from your backup
  6. Start Sonarr
  7. As long as the paths are the same, everything will pickup where it left off

Restore for Synology NAS

CAUTION: Restoring on a Synology requires knowledge of Linux and Root SSH access to the Synology Device.

  1. Re-install Sonarr
  2. Run Sonarr once to get the AppData directory location
  3. Stop Sonarr
  4. Connect to the Synology NAS through SSH and login as root
  5. execute the following commands

    rm -r /usr/local/nzbdrone/var/.config/NzbDrone/nzbdrone.db-*
    cp -f /tmp/nzbdrone_backup/. /usr/local/nzbdrone/var/.config/NzbDrone/
    
  6. Start Sonarr