How to create hourly backup for a proxmox vm on PBS?

kumarullal

Active Member
Jun 17, 2009
170
0
36
LA, USA
Hi,
First of all congratulations on coming out with a fantastic solution. I installed PBS on a physical server and setup a backup storage and added it to my Proxmox ve node.
From the GUI it gives you the same options are vzdump backup. You can only select days and time for a automatic backup to run. The first backup is of course a full backup, which takes time. But the subsequent incremental backups happen in seconds. The trouble i that it only backs up once a day like vzdump, but incrementally. In PBS gui, on the storage, if we select a vm backup, check the pruning options for that backup, I can specify retention policy that includes daily, hourly , monthly and yearly, but there is no way to configure the backup schedule to hourly or every half hour etc.
I saw somewhere in the documentation that on PBS the is a command "proxmox-backup-server" with "--gc-schedule" option. However, there are re are no examples on how to use it. If there are a few examples of using the "proxmox-backup-server" command options to backup hourly, monthly and yearly , that would be great.
For now, I just want to try running hourly backups, and maintaining last 6 hourly backups.
How do I do that?
 
Last edited:

villain666

Member
Oct 4, 2012
18
2
23
Hi,
First of all congratulations on coming out with a fantastic solution. I installed PBS on a physical server and setup a backup storage and added it to my Proxmox ve node.
From the GUI it gives you the same options are vzdump backup. You can only select days and time for a automatic backup to run. The first backup is of course a full backup, which takes time. But the subsequent incremental backups happen in seconds. The trouble i that it only backs up once a day like vzdump, but incrementally. In PBS gui, on the storage, if we select a vm backup, check the pruning options for that backup, I can specify retention policy that includes daily, hourly , monthly and yearly, but there is no way to configure the backup schedule to hourly or every half hour etc.
I saw somewhere in the documentation that on PBS the is a command "proxmox-backup-server" with "--gc-schedule" option. However, there are re are no examples on how to use it. If there are a few examples of using the "proxmox-backup-server" command options to backup hourly, monthly and yearly , that would be great.
For now, I just want to try running hourly backups, and maintaining last 6 hourly backups.
How do I do that?
Create new crontab job by hand (as example use disabled backup job from interface PVE)


*/30 * * * * root vzdump 102 11003 .......

example for half-hour vzdumps
 
  • Like
Reactions: DerDanilo

kumarullal

Active Member
Jun 17, 2009
170
0
36
LA, USA
Create new crontab job by hand (as example use disabled backup job from interface PVE)


*/30 * * * * root vzdump 102 11003 .......

example for half-hour vzdumps

I wanted to clarify one thing. When we use the GUI in pve, there is a file vzdump created in /etc/cron.d with a symlink, pointing to /etc/pve/vzdump.cron
So Are you saying that I create another backup job in PVE using the GUI and select the same storage and VM tobackup everyday, and then uncheck it so that the backup is not used and then manually edit the /etc/pve/vzdump.cron and modify the second entry as per my needs?
Or I just create a new file in /etc/cron.d/ and call it anythng with the entry that I need?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE 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 your own in 60 seconds.

Buy now!