30 lines
1.2 KiB
Plaintext
30 lines
1.2 KiB
Plaintext
# =============================================================
|
|
# Per-machine restic configuration
|
|
# Copy to /etc/restic/env and fill in all values.
|
|
# chmod 600 /etc/restic/env
|
|
# =============================================================
|
|
|
|
# --- Machine identity ----------------------------------------
|
|
# Used as the repo name on the REST server.
|
|
# Each machine MUST have a unique name (e.g. netcup, laptop, homeserver).
|
|
export MACHINE_NAME=change-me
|
|
|
|
# --- REST server ---------------------------------------------
|
|
# BACKUP_SERVER is used for reachability checks (host:port).
|
|
export BACKUP_SERVER=nas.box:30248
|
|
export RESTIC_REPOSITORY=rest:http://oliver:oli1oli1@${BACKUP_SERVER}/${MACHINE_NAME}
|
|
|
|
# --- Encryption ----------------------------------------------
|
|
# Generate with: openssl rand -base64 32
|
|
# Store in recovery.txt on TrueNAS and your personal password manager.
|
|
export RESTIC_PASSWORD=change-me
|
|
|
|
# --- Paths to back up ----------------------------------------
|
|
# Space-separated list of absolute paths.
|
|
export BACKUP_PATHS="/etc /root /var/spool/cron"
|
|
|
|
# --- Retention policy ----------------------------------------
|
|
export KEEP_DAILY=5
|
|
export KEEP_WEEKLY=3
|
|
export KEEP_MONTHLY=3
|