Skip to content

Instantly share code, notes, and snippets.

@werrpy
Last active July 28, 2019 15:42
Show Gist options
  • Select an option

  • Save werrpy/292efd721c12342bc079d015daca3939 to your computer and use it in GitHub Desktop.

Select an option

Save werrpy/292efd721c12342bc079d015daca3939 to your computer and use it in GitHub Desktop.
backup plex every 6 am
#!/bin/bash
plex_archive="/home/$(date '+%F') Plex Media Server.tar"
/bin/tar -cvf "$plex_archive" "/home/plexmediaserver/Library/Application Support/Plex Media Server" > /dev/null 2>&1
/usr/bin/rclone --config /root/gdrive/config/rclone_vault.conf move "$plex_archive" drive:Backups/Plex > /dev/null 2>&1
tautulli_archive="/home/$(date '+%F') Tautulli.tar"
/bin/tar -cvf "$tautulli_archive" "/opt/Tautulli/backups" > /dev/null 2>&1
/usr/bin/rclone --config /root/gdrive/config/rclone_vault.conf move "$tautulli_archive" drive:Backups/Tautulli > /dev/null 2>&1
0 6 * * * /root/bin/backup.sh
@werrpy
Copy link
Author

werrpy commented Jul 27, 2019

to restore, tar -xf 2019-07-27\ Plex\ Media\ Server.tar -C /

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment