added backup.sh
This commit is contained in:
parent
60584cbc68
commit
beaa8fff5b
15
bin/backup.sh
Executable file
15
bin/backup.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
set -aeou pipefail
|
||||
|
||||
RESTIC=/usr/bin/restic
|
||||
|
||||
# some helpers and error handling:
|
||||
trap 'echo $( date ) Backup interrupted >&2; exit 2' INT TERM
|
||||
|
||||
# shellcheck disable=SC1090
|
||||
source "${HOME}"/.restic/restic.env
|
||||
|
||||
$RESTIC backup \
|
||||
--exclude-file="$HOME"/.restic/excludes.txt \
|
||||
--files-from="$HOME"/.restic/includes.txt \
|
||||
--verbose
|
Loading…
Reference in New Issue
Block a user