From b0b2287291b5a3613db7c0e7bc1fbb7cd4fe1cdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Sun, 23 Feb 2020 13:57:06 +0100 Subject: [PATCH] Enable restic backup --- _machines/notebook01.yml | 2 +- _machines/tb-hak.yml | 2 +- autostart.sh | 4 ++-- bin/restic-backup | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) create mode 100755 bin/restic-backup diff --git a/_machines/notebook01.yml b/_machines/notebook01.yml index 10f5b52..646af80 100644 --- a/_machines/notebook01.yml +++ b/_machines/notebook01.yml @@ -26,4 +26,4 @@ workspace: environment: MACHINE_HAS_KEEPASSX: 0 MACHINE_HAS_NEXTCLOUD: 1 - MACHINE_HAS_GDRIVE_BACKUP: 0 + MACHINE_RESTIC_BACKUP: 0 diff --git a/_machines/tb-hak.yml b/_machines/tb-hak.yml index 138f9bb..92f98d1 100644 --- a/_machines/tb-hak.yml +++ b/_machines/tb-hak.yml @@ -40,4 +40,4 @@ workspace: environment: MACHINE_HAS_KEEPASSX: 1 MACHINE_HAS_NEXTCLOUD: 0 - MACHINE_HAS_GDRIVE_BACKUP: 0 + MACHINE_RESTIC_BACKUP: 1 diff --git a/autostart.sh b/autostart.sh index 911d5f3..9639a03 100755 --- a/autostart.sh +++ b/autostart.sh @@ -146,6 +146,6 @@ if [[ "${MACHINE_HAS_NEXTCLOUD}" ]] ; then run nextcloud nextcloud fi -if [[ "${MACHINE_HAS_GDRIVE_BACKUP}" ]] ; then - [[ -x ~/bin/gdrive-backup ]] && schedule backup "Mon..Fri 12:00:00" ~/bin/gdrive-backup +if [[ "${MACHINE_HAS_RESTIC_BACKUP}" ]] ; then + [[ -x ~/bin/restic-backup ]] && schedule restic-backup "Mon..Fri 12:00:00" ~/bin/restic-backup fi diff --git a/bin/restic-backup b/bin/restic-backup new file mode 100755 index 0000000..ff768c6 --- /dev/null +++ b/bin/restic-backup @@ -0,0 +1 @@ +restic -r rclone:gdrive:restic --password-file=$HOME/restic_password backup --exclude-file=$HOME/restic_exclude.lst $HOME