My convenience scripts for using Proxmox Backup Client.
- Clone this repository.
- For convenience, symlink the backup scripts in the
scriptsdirectory to wherever you want.- The included
install.shis a crude script will symlink the backup scripts into your~/bindirectory. - It assumes this repository is cloned at
~/git/pbs-scripts.
- The included
- Update your
.bashrc,.zshrc, or other login script to ensure the follow environment variables are set for this system:PBS_BACKUP_NAMEPBS_BACKUP_DIRPBS_NAMESPACEPBS_REPOSITORY
- Optionally set
PBS_PASSWORDor a related environment variable to avoid being prompted for the password.
pbs-environment.sh- Sets up the environment for the other scripts and logs in.
- You're unlikely to use this directly unless you only want to login.
backup-to-pbs.sh- Backs up the
PBS_BACKUP_DIRusing thePBS_BACKUP_NAMEandPBS_NAMESPACEspecified.
- Backs up the
list-pbs-snapshots.sh- Lists the known backups for the
PBS_BACKUP_NAMEandPBS_NAMESPACEspecified.
- Lists the known backups for the
restore-pbs-backup.sh- Restores the specified backup listed by
list-pbs-snapshots.sh.
- Restores the specified backup listed by
An Ansible role for installing the Proxmox Backup Client and these helpers scripts is available in this repository. It has some customization, but not a lot, as this repository is primarily for myself. Feel free to use it but your mileage may vary.