Migrating Existing Sonarr-SABnbzd to a New Install of DietPi

Description: 

Move an existing Sonarr-SABnzbd stack, using indexer NZBGeek to the latest version of DietPi on another Raspberry Pi. For a clean upgrade, it’s recommended by DietPi to do an install of the latest version, including required packages.


Source Components:

  •     Raspberry Pi 3B
  •     DietPi (mine was based on Debian Stretch)
  •     Sonarr
  •     SABnzbd
  •     Samba
  •     Plex Media Server
  •     SSH Server
  •     USB External hard drive mounted on /media in DietPi
    •        dietpi-userdata (on the old systerm) was previously migrated to USB drive with dietpi-drive_manager
  •     Static IP Address
  •     Mono runtime


Target Components:

  •     Raspberry Pi 4B, 2GB
  •     DietPi based on Debian Bullseye (or latest release)
  •     Latest Sonarr, SABnzbd. Plex Media Server, Samba, etc.


Backup old Diet Pi

Stop services with:

sudo systemctl stop sonarr
sudo systemctl stop sabnzbd
sudo systemctl stop plexmediaserver

Copy to another location, different from the USB hard drive:

  •    /etc/fstab
    •         You will want the same USB hard drive mount point name on both systems, for me it was /media
  •     /etc/samba/smb.conf
  •     dietpi-userdata

   


Make a copy of:

  1.     Your indexer API key
  2.     Your SABnzbd API key

Install DietPi

  1.  Download and install latest DietPi. In my case, that was based on Debian Bullseye.
    1.   I want to use FileZilla from my desktop computer to the new DietPi (nDP). This requires OpenSSH installed in DietPi (nDP). The default SSH server is DropBear.
  2. Assign a static IP address for the nDP, different from the existing DietPi instance. This will be changed back to the previous static IP, so any external software sourcing the previous IP address won’t have to be modified.
  3.  Install required packages on nDP without the USB drive attached

       

Move dietpi_userdata  

  1.  Shut down (old) DietPi and nDP and move the USB hard drive to inDP, then restart nDP 
  2.  STOP any systemctl service on nDP that has data files in dietpi-userdata, such as Sonarr, Plex, etc. This is to avoid file corruption and permission problems. 
  3.  Use dietpi-drive_manager to mount the USB drive. If it mounts to some other name than on the original DietPi (eg.: /mnt), edit etc/fstab with sudo nano and change the mount point. Then, sudo reboot.
  4.  Use dietpi-drive_manager to move dietpi-userdata to the USB drive
  5.  Copy the backup of the old dietpi-userdata to dietpi-userdata on the USB drive


Setup Samba

  1.  Copy backup of old DietPi smb.conf to etc/samba/smb.conf; mount point in fstab must match the mount point in smb.conf
  2.  Add samba password for user dietpi:  sudo passwd -a dietpi
  3.  sudo reboot


Plex Configuration Checks

  1.  Sign into nDP:32400/web
  2.  Remove old server under “Authorized Devices”
  3.  Add libraries for Movies, TV, etc.


SABnzbd Configuration Checks

  1.  Make sure newshost is correct
  2.  Make sure api is correct


Sonarr Configuration Checks

  1.  Setup/Test indexer with existing API key; test
  2.  Setup/Test downloader (sabnzbd) with existing API key

           


Comments

  1. Cool story, bro! Thanks for documenting the steps involved.

    ReplyDelete

Post a Comment

Popular Posts