Rico's Blog

Back

Intro#

I have the following simple backup setup for my Proxmox server. Since backup schedule is weekly, it would make a lot of sense to bring the backup server up only when it’s needed. I decided to make my own script after seeing one on 1 Proxmox forum.

Proxmox

Setup#

Here are the steps

  1. configure the PBS server’s BIOS so Wake-on-lan feature is enabled
  2. install wakeonlan program on the Proxmox server if it’s not already installed
apt install wakeonlan
bash
  1. set up password-less login from Proxmox server
ssh-keygen -t ed25519
ssh-copy-id root@$PBS
bash
  1. create /usr/local/bin/vzdump-hook-script as follow and make it executable
  1. update /etc/pve/jobs.cfg to add this line
/etc/pve/jobs.cfg
script /usr/local/bin/vzdump-hook-script
log

Reference#

Footnotes#

  1. https://forum.proxmox.com/threads/auto-poweroff-proxmox-backup-server-after-backup-finishes-hook-script-option.105493/