I guess this is yet another post about backing up files on the PVE host. I've done some searching and reading of the docs, so `proxmox-backup-client` feels like the right way to get the actual backup. What isn't clear to me is how to create a backup job that uses this, or if it can't be done from a backup job, what the right proxmox-y way is to run a regular task like this. I know I can use cron, but I'm hoping for better integration of the job, status, scheduling, etc in the GUI.
Concretely I think I will end up with a shell script like this:
I've seen the script hook feature of backup jobs, but from what I can tell, that's intended to do something at various stages of a CT or VM backup. It didn't look like a way to just run a script on a schedule.
Or, is there a way to create a backup job on the cmdline that does host files only?
Concretely I think I will end up with a shell script like this:
Bash:
#!/bin/bash
export PBS_PASSWORD="mypassword"
export PBS_LOG=INFO
proxmox-backup-client backup pve-etc.pxar:/etc --include-dev /etc/pve pve-root.pxar:/root --repository admin@pbs@backups.example.com:pbs --keyfile /path/to/my-backup.key
I've seen the script hook feature of backup jobs, but from what I can tell, that's intended to do something at various stages of a CT or VM backup. It didn't look like a way to just run a script on a schedule.
Or, is there a way to create a backup job on the cmdline that does host files only?
Last edited: