umask
This commit is contained in:
parent
e68be56e3b
commit
c618a11430
1 changed files with 4 additions and 0 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue