Schedule power on PBS

Ayrton5

Member
Oct 23, 2023
20
9
8
I use an old HP microserver Gen7 running Proxmox Backup Server. It takes a copy of the VMs containing my photos, home videos and music library. These are all precious to me but traffic is low so I only run a backup once a month.

This might seem like overkill, especially as the files themselves (well, the photos and videos) are also backed up to a Nas and then on to the cloud, but in the event anything happened to my main Proxmox I like the idea of getting everything back just how it was with ease.

The thing is, I don't like the idea of leaving the PBS running whilst it is not needed for 28+ days a month. I can't imagine a scenario where the backups would take a day. But even if I left it running for 2, then I'm still using 1/15th the power.

What is the best strategy for automating power on/off? Or is there a way to make PBS go into a deep hibernation in between jobs?

I know I can get it to go off with a cron job, but that's not going to bring it back. Any ideas? I am very much a noob with both Proxmox and Linux but I have successfully followed instructions on several tasks now .
 
I use wakeoverlan to power up my PBS via a systemd timer grom my main ProxmoxVE host every night .
Systemd timers are a mechanism to run jobs/scripts on a regular schedule ( hourly, weekly, monthly, every first of month at 3 pm etc).

On the PBS I have a another systemd timer which calls a script, the time is set to 15 minutes after the wakeup. I assume that 15 minutes will be enough for waking up, this time could propably be reduced. The Script then manually calls the PBS Tasks ( pull-sync, prune, garbage-collection and verify) before powering off the PBS.

Instead of systemd timers you could use setup a cron job, which basically do the same but the configuration is a little bit different. Use whatever is easier for you.

I remember somebody ( @UdoB ) mentioned that Sone BIOS allows setting poweron times for the computer so this might be another Option.
 
Last edited: