From f034de5bf5c04aa29ef136cdef327d166314af93 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Wed, 26 Feb 2025 17:15:30 -0800 Subject: [PATCH] change default backup dir to /var/backups/bashup --- README.md | 2 ++ sbin/bashup.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1f47af6..836d337 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,8 @@ cd bashup cp sbin/bashup*.sh /usr/local/sbin/ chmod 755 /usr/local/sbin/bashup*.sh chown root:root /usr/local/sbin/bashup*.sh +# create default backup dir +mkdir /var/backups/bashup # install & enable bashup systemd cron mkdir -p /usr/local/lib/systemd/system cp systemd/bashup-cron.* /usr/local/lib/systemd/system/ diff --git a/sbin/bashup.sh b/sbin/bashup.sh index 00eedbd..4089b42 100755 --- a/sbin/bashup.sh +++ b/sbin/bashup.sh @@ -13,7 +13,7 @@ retention_weeks=5; retention_days=7; # backup storage directory -backup_storage_dir='/mnt/backups'; +backup_storage_dir='/var/backups/bashup'; # which backup scripts to run via bashup-cron.sh - options are 'files', 'mysql', 'pdns', 'postgres' bashup_jobs=('files' 'mysql');