Last active
June 1, 2019 16:56
-
-
Save DeepInThought/21d264c10359c5a8f25331d1d266bd59 to your computer and use it in GitHub Desktop.
Home dir
This file contains 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
# 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