I'm searching an official way to create an entry in /etc/pve/vzdump.cron to add a PBS backup job. I already use pvesm to create the PBS server via cli but I can't find any documentation how to add something to vzdump.cron.
vzdump.cron recently got switched to a new scheduler/config file (configured via /etc/pve/jobs.cfg), so depending on your version that might be what you want to look at.
AFAIK it's not exposed directly on the CLI, but you can use pvesh or any other API client: /cluster/backup (GET for index, POST for creating a new job) /cluster/backup/{id} (GET for details of job definition, PUT for updating, DELETE for removing a job)
Ok, thanks for the hint. But it seems that just using the GUI doesn't create the jobs.cfg file if an vzdump.cron exisits. Just checked. With pve-manager/7.1-10/6ddebafe (running kernel: 5.15.19-1-pve) running.
The first time just uncheck und checked the "Enable" option but without leaving the dialog. Seconds try is with leaving the dialog and now the jobs.cfg was created and the old entry was removed from vzdump.cron.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.