aboutsummaryrefslogtreecommitdiff
path: root/backup.in
diff options
context:
space:
mode:
Diffstat (limited to 'backup.in')
-rw-r--r--backup.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/backup.in b/backup.in
index 046953d..615fa12 100644
--- a/backup.in
+++ b/backup.in
@@ -121,6 +121,8 @@ backup() {
logit "finished"
}
+umask ${backup_umask:-077}
+
if [ -n "$backup_logfile" ]; then
runhook openlog_hook
exec >>$backup_logfile
@@ -129,11 +131,8 @@ fi
if [ -z "$backup_notify_email" ]; then
backup
else
- u=$(umask)
- umask 077
report=$backup_snapshot_dir/report.$$
touch $report
- umask $u
backup 2>&1 | tee $report
mail_report $report
rm $report

Return to:

Send suggestions and report system problems to the System administrator.