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}"