Reliable backups

Running plex on freebsd jails (freenas 11.3)
I have had several times now that i had to reinstall the server (messing about)

Everytime i copy the DB and the whole dir. This dir is so huge (metadata) that somehow it goes wrong everytime. Then it does not detect the server (have to remake it) but the db is usually ok.
So i want to setup a reliable backup i am doing snapshots ofc they work nice but are on the ssd drive witch is single point of failure. I am looking into making a copy of the iocage datadrive./ via snapshots and replication. But i wonder cause i prefer a live copy so a rsync every 15 min wil not work i presume ? Plex needs to be offline for that ?

Any suggestions tips in any way or form are welcome.

Ps. Is it possible to change the save location of the subtitles downloaded via plex (plexpass)

Zo i came up with:

#!/bin/tcsh -v
cd /plex_data/‘Plex Media Server’/‘Plug-in Support’/Databases/

sqlite3 com.plexapp.plugins.library.db “.backup db_backups/com.plexapp.plugins.library.date '+%d-%m-%Y_%H:%M'.db”
sqlite3 com.plexapp.plugins.library.blobs.db “.backup db_backups/com.plexapp.plugins.library.blobs.date '+%d-%m-%Y_%H:%M'.db”
sqlite3 /com.plexapp.dlna.db “.backup db_backups/com.plexapp.dlna.date '+%d-%m-%Y_%H:%M'.db”
rsync -varh --no-o --no-g --no-perms /plex_data/ /mnt/storage/backupplex/
cp /mnt/storage/backupplex/‘Plex Media Server’/Preferences.xml /mnt/storage/backupplex/‘Plex Media Server’/pref_backups/Preferences.date '+%d-%m-%Y_%H:%M'.xml

As i understand the Documentation sqlite3 makes a viable backup of the live DB’s
I copy all the Db’s and separate them into a backup dir (so i have several copy’s)
Same for Preferances.xml since this is where the Server ident is saved (AFAIK ?)

Rsync for all the files for the sake of it. (AFAIK you do not need them to restore ?) since its incremental its only 7gb i have no issue with that.

So i think this is a good setup i am looking into snapshots but is dislike them. they are the absolute best as i understand but i find it hard to store them on a different dataset replication can do this but i get them replicated then they are there and i am stuck on how to restore them. I wil have to learn more on that.

But still this is a good setup IMHO ? Again open to suggestions and tips.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.