brancott

Member
Apr 11, 2022
9
0
6
Hi guys! I wonder how to edit existing pbs job via cli? I can create tasks with pvesh but how abiut editing them?

For example I need to transfer couple of hundreds backup jobs from one datastore to another. How do I do that?
 
Hi,
editing a Proxmox VE backup job can be done either via the API, see this endpoint and all the available methods https://pve.proxmox.com/pve-docs/api-viewer/index.html#/cluster/backup/{id} (you want to use the PUT methods for editing), or directly via the config file located at /etc/pve/jobs.cfg, which if you want to transfer the jobs is probably what you are looking for.
 

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!