made everything a little bit easier to configure
This commit is contained in:
@ -5,8 +5,7 @@
|
||||
# Exit on failure, pipe failure
|
||||
set -e -o pipefail
|
||||
|
||||
export RESTIC_PASSWORD_FILE="/etc/restic/pw.txt"
|
||||
export RESTIC_REPOSITORY="sftp:lerentis@asgard.lan:/srv/dev-disk-by-id-md-name-asgard-Data/Backup/Laptop/Huginn"
|
||||
source /etc/restic/env.sh
|
||||
|
||||
# Clean up lock if we are killed.
|
||||
# If killed by systemd, like $(systemctl stop restic), then it kills the whole cgroup and all it's subprocesses.
|
||||
@ -23,10 +22,6 @@ RETENTION_DAYS=14
|
||||
RETENTION_WEEKS=16
|
||||
RETENTION_MONTHS=18
|
||||
RETENTION_YEARS=3
|
||||
|
||||
# What to backup, and what to not
|
||||
BACKUP_PATHS="/home/lerentis/"
|
||||
BACKUP_EXCLUDES="--exclude-file /home/lerentis/.backup_exclude"
|
||||
BACKUP_TAG=systemd.timer
|
||||
|
||||
|
||||
|
@ -5,8 +5,7 @@
|
||||
# Exit on failure, pipe failure
|
||||
set -e -o pipefail
|
||||
|
||||
export RESTIC_PASSWORD_FILE="/etc/restic/pw.txt"
|
||||
export RESTIC_REPOSITORY="sftp:lerentis@asgard.lan:/srv/dev-disk-by-id-md-name-asgard-Data/Backup/Laptop/Huginn"
|
||||
source /etc/restic/env.sh
|
||||
|
||||
# Clean up lock if we are killed.
|
||||
# If killed by systemd, like $(systemctl stop restic), then it kills the whole cgroup and all it's subprocesses.
|
||||
@ -18,12 +17,6 @@ exit_hook() {
|
||||
}
|
||||
trap exit_hook INT TERM
|
||||
|
||||
|
||||
#source /etc/restic/b2_env.sh
|
||||
|
||||
# How many network connections to set up to B2. Default is 5.
|
||||
B2_CONNECTIONS=50
|
||||
|
||||
# Remove locks from other stale processes to keep the automated backup running.
|
||||
# NOTE nope, dont' unlock liek restic_backup.sh. restic_backup.sh should take preceedance over this script.
|
||||
#restic unlock &
|
||||
|
Reference in New Issue
Block a user