commit 809ea8e87b3401895dc53aec2f92a06847b41b51 parent 776d7fd5b27bc395e36b450c03d8460a13cc2beb Author: Andrew Laack <andrew@laack.co> Date: Thu, 19 Feb 2026 03:43:27 -0600 Added proper messaging Diffstat:
| M | backup.sh | | | 11 | +++++++++-- |
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/backup.sh b/backup.sh @@ -1,4 +1,11 @@ #!/bin/bash +set -o pipefail -mkdir -p /home/andrew/logs -/home/andrew/bin/backups/pull.sh | tee /home/andrew/logs/backup.log 2>&1 +mkdir -p ~/logs + +if ~/bin/backups/pull.sh | tee ~/logs/backup.log 2>&1; then + echo "PASS: Backup Success" | tee -a ~/logs/backup.log + date | tee -a ~/logs/backup-times.txt +else + echo "FAIL: Backup Failed" | tee -a ~/logs/backup.log +fi