Restore detailed backup mail reports with bounded local delivery
This commit is contained in:
1 parent
3374019ad6
commit
99da6460d2
10 files changed
+396
-13
No files matched your search
+3
-2
@@ -18,9 +18,9 @@ done
|
||||
[[ $NO_TIMER != true || $ENABLE_TIMER != true ]] || exit 1
|
||||
# Syntax and packaging errors must be caught BEFORE changing the running installation.
|
||||
for file in "$ROOT_DIR"/usr-local-sbin/*.sh "$ROOT_DIR/lib/common.sh"; do bash -n "$file"; done
|
||||
python3 - "$ROOT_DIR/lib/backup_set.py" <<'PY'
|
||||
python3 - "$ROOT_DIR/lib/backup_set.py" "$ROOT_DIR/lib/report.py" <<'PY'
|
||||
import ast,sys
|
||||
ast.parse(open(sys.argv[1]).read())
|
||||
for path in sys.argv[1:]: ast.parse(open(path).read())
|
||||
PY
|
||||
LOCKFILE=/run/app-backup.lock
|
||||
if [[ -f /etc/app-backup/app-backup.conf ]]; then
|
||||
@@ -52,6 +52,7 @@ add usr-local-sbin/app-restore.sh /usr/local/sbin/app-restore.sh 750
|
||||
add lib/common.sh /usr/local/lib/app-backup/common.sh 640
|
||||
add lib/locking.sh /usr/local/lib/app-backup/locking.sh 640
|
||||
add lib/backup_set.py /usr/local/lib/app-backup/backup_set.py 640
|
||||
add lib/report.py /usr/local/lib/app-backup/report.py 640
|
||||
add systemd/app-backup.service /etc/systemd/system/app-backup.service 644
|
||||
# Preserve existing schedules. The new timer template remains available as .dist.
|
||||
if [[ -e /etc/systemd/system/app-backup.timer ]]; then
|
||||
|
||||
Reference in new issue
Block a user