Starting/stopping backup server automatically

sbaira

New Member
Jan 2, 2024
1
0
1
I'm setting up a backup server for my homelab. My virtual environment is on 24/7, but it is a low-power server and draws only 15W. My backup server is an ancient Xeon server and draws 200+W.

My electricity is expensive and I don't want to run the backup server 24/7.

I'm happy to work out how to set it all up myself, but before I do, has this or something like it been documented already?

1. backup server automatically turns on and boots on a schedule (this is a feature of the bios)
2. after booting, a backup is started
3. after backup is complete, backup server is shutdown

Cheers
 
Hi!
the best way would probably to create a script that runs every X minutes and checks if all the tasks are finished.
You could execute something like `proxmox-backup-manager task list --all --limit 1` which gets the last executed (or still running) task, then check if the last endtime is more than ~10 min ago or something like that.

Edit: maybe add `--output-format json` for easier parsing.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!