Skip to content

Instantly share code, notes, and snippets.

@tomdaley92
Last active July 22, 2024 20:20
Show Gist options
  • Save tomdaley92/c585d7c7c5b63af3d7a89931afa3add0 to your computer and use it in GitHub Desktop.
Save tomdaley92/c585d7c7c5b63af3d7a89931afa3add0 to your computer and use it in GitHub Desktop.
Proxmox - Handy Scripts
#!/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
#!/usr/bin/env bash
bash <(curl -s https://raw.githubusercontent.com/Weilbyte/PVEDiscordDark/master/PVEDiscordDark.sh ) install
#!/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
@tomdaley92
Copy link
Author

tomdaley92 commented Jul 11, 2021

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.

@daily /bin/bash /root/backup.sh >/dev/null 2>&1

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