statik
Explorer
- Joined
- Sep 8, 2013
- Messages
- 71
I spent too many hours gathering this information, so why not share it to help you. The following commands will backup the configs/settings for CouchPotato, SABnzbd, SickRage and the configs and database for Plex. Be warned, depending on how many multimedia items you have added to Plex will affect how long it will take to backup. I have 1k+ movies and 30+ tv shows on my plex and it took about twenty minutes making the backup 9Gb. Obviously you can change any of the datasets or folder names are you please, below is what I did.
This quick guide is not intended for "noobs", but is for at least Tier 2 level skilled technicians.
1 ) In the FreeNAS GUI create a dataset for backups
- I created "/mnt/VolumeData/Backup"
2 ) In the FreeNAS GUI create a Share linked to the Backup dataset you just created
- I created the share "Backup"
Assuming you already have CouchPotato, SABnzbd, SickRage, & Plex installed and configured.
3 ) Create the following folder structure in your "Backups" dataset
- FreeNAS
- CouchPotato
- Plex
- SABnzbd
- SickRage
4 ) In the FreeNAS Shell, run the following comands:
- CouchPotato
*backup
cp /mnt/VolumeData/jails/couchpotato_1/var/db/couchpotato/settings.conf /mnt/VolumeData/Backup/FreeNAS/CouchPotato/
*restore
cp /mnt/VolumeData/Backup/FreeNAS/CouchPotato/settings.conf /mnt/VolumeData/jails/couchpotato_1/var/db/couchpotato/
- SABnzbd
*backup
cp /mnt/VolumeData/jails/sabnzbd_1/var/db/sabnzbd/sabnzbd.ini /mnt/VolumeData/Backup/FreeNAS/SABnzbd/
*restore
cp /mnt/VolumeData/Backup/FreeNAS/SABnzbd/sabnzbd.ini /mnt/VolumeData/jails/sabnzbd_1/var/db/sabnzbd/
- SickRage
*backup
cp /mnt/VolumeData/jails/sickrage_1/var/db/sickrage/config.ini /mnt/VolumeData/Backup/FreeNAS/SickRage/
*restore
cp /mnt/VolumeData/Backup/FreeNAS/SickRage/config.ini /mnt/VolumeData/jails/sickrage_1/var/db/sickrage/
- PLEX
*backup
cd /mnt/VolumeData/jails/plexmediaserver_1/var/db/
tar cvfz /mnt/VolumeData/Backup/FreeNAS/Plex/plexdata.tar.gz plexdata
*restore
cd /mnt/VolumeData/jails/plexmediaserver_1/var/db/
tar xvfz /mnt/VolumeData/Backup/FreeNAS/Plex/plexdata.tar.gz
This quick guide is not intended for "noobs", but is for at least Tier 2 level skilled technicians.
1 ) In the FreeNAS GUI create a dataset for backups
- I created "/mnt/VolumeData/Backup"
2 ) In the FreeNAS GUI create a Share linked to the Backup dataset you just created
- I created the share "Backup"
Assuming you already have CouchPotato, SABnzbd, SickRage, & Plex installed and configured.
3 ) Create the following folder structure in your "Backups" dataset
- FreeNAS
- CouchPotato
- Plex
- SABnzbd
- SickRage
4 ) In the FreeNAS Shell, run the following comands:
- CouchPotato
*backup
cp /mnt/VolumeData/jails/couchpotato_1/var/db/couchpotato/settings.conf /mnt/VolumeData/Backup/FreeNAS/CouchPotato/
*restore
cp /mnt/VolumeData/Backup/FreeNAS/CouchPotato/settings.conf /mnt/VolumeData/jails/couchpotato_1/var/db/couchpotato/
- SABnzbd
*backup
cp /mnt/VolumeData/jails/sabnzbd_1/var/db/sabnzbd/sabnzbd.ini /mnt/VolumeData/Backup/FreeNAS/SABnzbd/
*restore
cp /mnt/VolumeData/Backup/FreeNAS/SABnzbd/sabnzbd.ini /mnt/VolumeData/jails/sabnzbd_1/var/db/sabnzbd/
- SickRage
*backup
cp /mnt/VolumeData/jails/sickrage_1/var/db/sickrage/config.ini /mnt/VolumeData/Backup/FreeNAS/SickRage/
*restore
cp /mnt/VolumeData/Backup/FreeNAS/SickRage/config.ini /mnt/VolumeData/jails/sickrage_1/var/db/sickrage/
- PLEX
*backup
cd /mnt/VolumeData/jails/plexmediaserver_1/var/db/
tar cvfz /mnt/VolumeData/Backup/FreeNAS/Plex/plexdata.tar.gz plexdata
*restore
cd /mnt/VolumeData/jails/plexmediaserver_1/var/db/
tar xvfz /mnt/VolumeData/Backup/FreeNAS/Plex/plexdata.tar.gz
Last edited: