This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/env bash | |
| # This script is used to backup from Proxmox Virtual Environment (PVE) to the Proxmox Backup Server (PBS). | |
| # Can be run manually or scheduled using cron with no user input. Provides output to the terminal and logs to a file. | |
| # Must have a valid API token for the user on the Proxmox Backup Server (PBS) to run this script. | |
| # ==================== Define variables (Edit Below) ==================== # | |
| DRY_RUN=false # true/false, for testing purposes true (only logs will be generated), for production false (actual run) | |
| CLIENT_HOSTNAME="$(hostname)" | |
| PBS_USER="pbsuser" # user name of the PBS user must have DatastoreAdmin privilages on /datastore |