Trying to automate the backup/restore of my plex data directory. Here is the script. I thought I would share it case it helps. Will make a task in the GUI to run it daily. Edit: added option to backup without user input by setting cron="yes"