Compare commits

...

2 Commits

Author SHA1 Message Date
2cf4a348c3 Fix backup function not removing old files. 2025-10-09 10:41:40 -07:00
4a33adf073 Add TBD for timezones. 2025-10-09 10:41:27 -07:00
2 changed files with 5 additions and 1 deletions

View File

@@ -787,7 +787,7 @@
BASENAME="/tmp/Backup"
BACKUP="$BASENAME.`now`.$HOSTNAME.$TAG.zip"
echo "*** Removing Old Backups ***"
rm -fv "$BASENAME"*"$TAG"*
sh -c 'rm -fv "$BASENAME"*"$TAG"*''
echo "*** Creating backup at '$BACKUP' ***"
sudo zip -rv "$BACKUP" \
/etc /var/{log,mail,spool} /srv /boot \

View File

@@ -120,3 +120,7 @@
until: ntp_status.state == "started"
retries: 3
delay: 3
## Timezone ##
# TBD/TODO: Add a field to config file which gets applied via timedatectl and /etc/localtime.