Limit access to backup files
This commit is contained in:
parent
a032babff6
commit
de9548d9e9
|
@ -120,6 +120,11 @@ main() { # {{{
|
||||||
ln --force -- "${local_bkp_dir}/pve.${TODAY_VAR}.tar.gz" "${local_bkp_dir}/pve.latest.tar.gz" \
|
ln --force -- "${local_bkp_dir}/pve.${TODAY_VAR}.tar.gz" "${local_bkp_dir}/pve.latest.tar.gz" \
|
||||||
|| exit 3
|
|| exit 3
|
||||||
## }}}
|
## }}}
|
||||||
|
## Fix backups permissions {{{
|
||||||
|
### Only readable by backup (user) and adm (group)
|
||||||
|
chown -R backup:adm -- "${local_bkp_dir}" \
|
||||||
|
&& chmod 'u+rwX,g+rX,o-rwx' -R -- "${local_bkp_dir}"
|
||||||
|
## }}}
|
||||||
|
|
||||||
}
|
}
|
||||||
# }}}
|
# }}}
|
||||||
|
|
Loading…
Reference in New Issue