From c618a11430b088d165e365ce9b788876515579f4 Mon Sep 17 00:00:00 2001 From: f Date: Mon, 30 Sep 2019 16:46:17 -0300 Subject: [PATCH] umask --- backup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backup.sh b/backup.sh index b546780..9f575af 100644 --- a/backup.sh +++ b/backup.sh @@ -8,6 +8,10 @@ date="$(date +%F)" orig=/srv/data dest=/srv/backups +# Let other users have read access, since the backup is encrypted +# anyway. This allows for synchronization from other containers. +umask 0022 + test -f "${dest}/config" || borg init --encryption=repokey "${dest}" borg create -v --stats "${dest}::${date}" "${orig}"