From 7e6840889f1a02c963cf0cc829ef48041d3d4008 Mon Sep 17 00:00:00 2001 From: Tobias Trabelsi Date: Sat, 8 Apr 2023 11:41:44 +0200 Subject: [PATCH] permissions and default backup location --- Makefile | 4 ++-- etc/restic/env.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ea8ef64..5beb00e 100644 --- a/Makefile +++ b/Makefile @@ -31,12 +31,12 @@ install: install-scripts install-exclude install-systemd # target: install-scripts - Install executables. install-scripts: install -d $(DEST_SCRIPTS) - install -m 744 $(SRCS_SCRIPTS) $(DEST_SCRIPTS) + install -m 744 $(SRCS_SCRIPTS) -o lerentis $(DEST_SCRIPTS) # target: install-conf - Install restic configuration files. install-conf: install -d $(DEST_CONF) -m 700 - install $(SRCS_CONF) $(DEST_CONF) + install $(SRCS_CONF) -o lerentis $(DEST_CONF) # target: install-exclude - Install backup exclude file. install-exclude: diff --git a/etc/restic/env.sh b/etc/restic/env.sh index 622e70b..d526eb1 100644 --- a/etc/restic/env.sh +++ b/etc/restic/env.sh @@ -1,7 +1,7 @@ #!/bin/bash export RESTIC_PASSWORD_FILE="/etc/restic/pw.txt" -export RESTIC_REPOSITORY="sftp:lerentis@192.168.0.211:/srv/dev-disk-by-id-md-name-asgard-Data/Backup/Laptop/Huginn" +export RESTIC_REPOSITORY="sftp:lerentis@192.168.0.211:/srv/dev-disk-by-label-Data/Backup/Laptop/Huginn" # What to backup, and what to not BACKUP_PATHS="/home/lerentis/"