This commit is contained in:
f 2019-09-30 16:46:17 -03:00
parent e68be56e3b
commit c618a11430
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D

View file

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