Last active
July 28, 2019 15:42
-
-
Save werrpy/292efd721c12342bc079d015daca3939 to your computer and use it in GitHub Desktop.
backup plex every 6 am
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0 6 * * * /root/bin/backup.sh |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
to restore,
tar -xf 2019-07-27\ Plex\ Media\ Server.tar -C /