Database backup and restore

Hi! Thank you for the command lines to make a tar file! It worked well on Debian systems.

I also recently migrated from a Debian system to an ArchLinux one, and after the installation of Plex with “pacaur -S plex-media-server-plexpass”, I saw that the folder structure in “/var/lib/” is different: there is no more “/var/lib/plexmediaserver/Library/Application Support/Plex Media Server” but only “/var/lib/plex/Plex Media Server”.

So here is how I restored my backup:

cd /var/lib/plex
sudo tar xvf /path/to/tarfile "./Library/Application Support/Plex Media Server" --strip=3

I don’t think the “./Library/Application Support/Plex Media Server” part is useful because it is the only directory inside the tar file.

It is strongly recommended to use ./Library because it makes it MUCH easier when you wish to switch back and forth. It also removes the need to create the subdirectories first .

In the tar file, it occupies about 64 bytes.