Forked from nathandarnell/Proxmox-Backup-to-Google-Drive
Created
February 10, 2023 14:20
-
-
Save hostingfuze/e54dd52575a4412e5d83227c9991a39f to your computer and use it in GitHub Desktop.
A script to backup Proxmox backups to Google Drive and delete any over a certain limit
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
#All backups go to here automatically: | |
#/var/lib/vz/dump | |
#install rclone if uninstalled or update available | |
#downloads page is http://rclone.org/downloads/ | |
wget http://downloads.rclone.org/rclone-current-linux-amd64.zip | |
# version on webpage is http://downloads.rclone.org/rclone-v1.33-linux-amd64.zip | |
# from: http://blog.mattwynne.net/2008/04/26/fetch-and-parse-html-web-page-content-from-bash-wow/ | |
# Download ZIP, keep zip in working folder, check future runs against HTML piped through w3c for newer versions | |
# from: http://tips.webdesign10.com/scrape-web-pages-gnu-linux-shell: | |
# lynx -source "http://www.example.com/" | grep -o 'your regular expression here' | sed 's/html tags here//g' | |
#install unzip if needed and uninstalled | |
#check for new backups | |
#clone backups to Google Drive with rclone :http://wiki.linuxquestions.org/wiki/Rsync_with_Google_Drive | |
#check if too many backups from a single VM | |
#check if too many backups total | |
#delete if too many backups from VM | |
#delete if too many backups total |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment