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:
- Your indexer API key
- Your SABnzbd API key
Install DietPi
- Download and install latest DietPi. In my case, that was based on Debian Bullseye.
- 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.
- 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.
- Install required packages on nDP without the USB drive attached
Move dietpi_userdata
- Shut down (old) DietPi and nDP and move the USB hard drive to inDP, then restart nDP
- 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.
- 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.
- Use dietpi-drive_manager to move dietpi-userdata to the USB drive
- Copy the backup of the old dietpi-userdata to dietpi-userdata on the USB drive
Setup Samba
- Copy backup of old DietPi smb.conf to etc/samba/smb.conf; mount point in fstab must match the mount point in smb.conf
- Add samba password for user dietpi: sudo passwd -a dietpi
- sudo reboot
Plex Configuration Checks
- Sign into nDP:32400/web
- Remove old server under “Authorized Devices”
- Add libraries for Movies, TV, etc.
SABnzbd Configuration Checks
- Make sure newshost is correct
- Make sure api is correct
Sonarr Configuration Checks
- Setup/Test indexer with existing API key; test
- Setup/Test downloader (sabnzbd) with existing API key
Cool story, bro! Thanks for documenting the steps involved.
ReplyDelete