PMS Database backup to external location - Ubuntu

IF I may recommend:

cd /var/lib/plexmediaserver
sudo bash
systemctl stop plexmediasever
tar cf /path/to/backup.tar  ./Library

As ROOT, you do not need to alter any system configuration (user plex).

Modifying accounts to do the above is not recommended.