first
This commit is contained in:
commit
9ee62d5c00
5 changed files with 407 additions and 0 deletions
29
backup.env.sample
Normal file
29
backup.env.sample
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# ==============================================================================
|
||||
# Shared configuration for backup.sh and restore.sh.
|
||||
#
|
||||
# This is a TEMPLATE — copy it to backup.env and fill in real values:
|
||||
#
|
||||
# cp backup.env.sample backup.env
|
||||
# chmod 600 backup.env
|
||||
#
|
||||
# backup.env is git-ignored and holds the live credentials. Both scripts
|
||||
# source it, so it is the single source of truth for the PBS connection/auth.
|
||||
# ==============================================================================
|
||||
|
||||
# --- Proxmox Backup Server ---
|
||||
export PBS_SERVER="backup.example.com"
|
||||
export PBS_DATASTORE="datastore-name"
|
||||
export PBS_PORT="8007"
|
||||
|
||||
# --- Namespace within the datastore ---
|
||||
BACKUP_NS="namespace-name"
|
||||
|
||||
# --- Authentication (API token: <user>@<realm>!<tokenname>) ---
|
||||
export PBS_AUTH_ID="user@pbs!tokenname"
|
||||
export PBS_PASSWORD="paste-token-secret-here"
|
||||
|
||||
# --- Client-side encryption key (passed via --keyfile) ---
|
||||
ENCRYPTION_KEY_FILE="/etc/proxmox-backup/encryption-key.pem"
|
||||
|
||||
# --- Local hostname (used as backup-id and archive-name prefix) ---
|
||||
HOSTNAME="$(hostname)"
|
||||
Loading…
Add table
Add a link
Reference in a new issue