Files
backup-server/backup-user/env.example
T
Oliver Walter 1ea0d846bb first commit
2026-06-17 01:54:53 +02:00

28 lines
1.2 KiB
Plaintext

# =============================================================
# Per-machine restic configuration — USER level
# Copy to ~/.config/restic/env and fill in all values.
# chmod 600 ~/.config/restic/env
# =============================================================
# --- Machine identity ----------------------------------------
# Each machine MUST have a unique name (e.g. desktop, laptop, workstation).
export MACHINE_NAME=change-me
# --- REST server ---------------------------------------------
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 ----------------------------------------
# $HOME is expanded at runtime — adjust to what matters to you.
export BACKUP_PATHS="$HOME/.config $HOME/.local/share $HOME/Documents $HOME/Pictures $HOME/Desktop"
# --- Retention policy ----------------------------------------
export KEEP_DAILY=5
export KEEP_WEEKLY=3
export KEEP_MONTHLY=3