1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-21 15:23:04 +00:00
28 Backup and Restore
bakerboy448 edited this page 2021-04-11 00:35:47 -05:00

Note: this is the Legacy v2 Wiki. The new V3 Wiki can be found at the Servarr Wiki.

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 containing / 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 pick up 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 log in 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. Update permissions on the files:

    cd /usr/local/nzbdrone/var/.config/NzbDrone/
    chown -R nzbdrone:users *
    chmod -R 0644 *
    

On some installations, the user is different: chown -R sc-nzbdrone:nzbdrone *

  1. Start Sonarr