Last active
July 22, 2024 20:20
-
-
Save tomdaley92/c585d7c7c5b63af3d7a89931afa3add0 to your computer and use it in GitHub Desktop.
Proxmox - Handy Scripts
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
#!/usr/bin/env bash | |
printf "*** RSYNC START - %s ***\n" "`date`" >> backup.log | |
rsync -vaxhR --delete /etc [email protected]:/volume1/pve >> backup.log | |
rsync -vaxhR --delete /var/lib/vz [email protected]:/volume1/pve >> backup.log | |
rsync -vaxhR --delete /var/spool/cron [email protected]:/volume1/pve >> backup.log | |
rsync -vaxhR --delete /var/lib/pve-cluster [email protected]:/volume1/pve >> backup.log | |
rsync -vaxhR --delete /root [email protected]:/volume1/pve >> backup.log | |
printf "*** RSYNC END - %s ***\n" "`date`" >> backup.log |
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
#!/usr/bin/env bash | |
bash <(curl -s https://raw.githubusercontent.com/Weilbyte/PVEDiscordDark/master/PVEDiscordDark.sh ) install |
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
#!/usr/bin/env bash | |
sed -Ezi.bak "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These scripts I leave handy in the home folder of the proxmox node itself, since installing the theme and removing the subscription notice tends to be required after updating Proxmox.
The backup script copies important files to Synology NAS using an
rsync
user over SSH.Scheduled with crontab entry for
root
user on node.