Skip to content

Instantly share code, notes, and snippets.

@DeepInThought
Last active June 1, 2019 16:56
Show Gist options
  • Save DeepInThought/21d264c10359c5a8f25331d1d266bd59 to your computer and use it in GitHub Desktop.
Save DeepInThought/21d264c10359c5a8f25331d1d266bd59 to your computer and use it in GitHub Desktop.
Home dir
# For use in restic-backup.sh
#? See https://gist.github.com/DeepInThought/67d3a4fd42d3ec43e85c5fd5966c0944
# Script directory
export SCRIPT_DIR="${HOME}/.scripts"
# Setup
export GET_LATEST_HOME_EXCLUDES="$(wget https://raw.githubusercontent.com/rubo77/rsync-homedir-excludes/master/rsync-homedir-excludes.txt -O ${SCRIPT_DIR}/homedir-excludes-latest.txt 2>/dev/null)"
# Restic variables
export RESTIC_MOUNTPOINT="/mnt/restic"
export RESTIC_PASSWORD_FILE="${SCRIPT_DIR}/.backup_secrets"
export RESTIC_PATH="/home/restic/bin/restic"
export RESTIC_REPOSITORY="/media/restic/backups/deepit-pc/home"
# bu variables
export BACKUP_EXCLUDE_FILE="${SCRIPT_DIR}/.backup_excludes"
export BACKUP_PATHS="/home"
export RETENTION_POLICY="--keep-daily=31 --keep-monthly=12 --keep-yearly=3"
export SNAPSHOT_TITLE="home-folders"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment