T TErxleben Renowned Member Oct 20, 2008 571 90 93 May 10, 2023 #1 I would like to activate/deactivate data backups via CLI. I imagined a bash script that checks certain requirements and then activates them accordingly. Does anyone have an idea how best to proceed?
I would like to activate/deactivate data backups via CLI. I imagined a bash script that checks certain requirements and then activates them accordingly. Does anyone have an idea how best to proceed?
T TErxleben Renowned Member Oct 20, 2008 571 90 93 May 10, 2023 #3 floh8 said: docu? Click to expand... RTFM? Thnx for help.
Dunuin Distinguished Member Jun 30, 2020 14,795 4,843 290 Germany May 10, 2023 #4 I can't remember that there is a CLI command to enable/disable a backup job. But you could do that using the API with pvesh from CLI. See here the {id} -> PUT -> enable: https://pve.proxmox.com/pve-docs/api-viewer/#/cluster/backup/ Last edited: May 10, 2023
I can't remember that there is a CLI command to enable/disable a backup job. But you could do that using the API with pvesh from CLI. See here the {id} -> PUT -> enable: https://pve.proxmox.com/pve-docs/api-viewer/#/cluster/backup/
T TErxleben Renowned Member Oct 20, 2008 571 90 93 May 10, 2023 #5 Maybe a good idea to implement it in general? Maybe there is a file to manipulate? Last edited: May 10, 2023
Dunuin Distinguished Member Jun 30, 2020 14,795 4,843 290 Germany May 10, 2023 #6 Safe way would be to use the API. To edit the jobs see the file: /etc/pve/jobs.cfg