From bb2059e6974c29c2b2147d7ce57f73c298ec6d0c Mon Sep 17 00:00:00 2001 From: Tyler Hallada Date: Sat, 12 Feb 2022 23:26:45 -0500 Subject: [PATCH] Fix find command options in backup.sh --- scripts/backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/backup.sh b/scripts/backup.sh index 1b573f1..11bfc13 100644 --- a/scripts/backup.sh +++ b/scripts/backup.sh @@ -2,6 +2,6 @@ export $(grep -v '^#' .env | xargs -d '\n') mkdir -p backups zip -r -9 backups/plugins.zip plugins -DF --out backups/plugins-update.zip -pg_dump -U modmapper -Fc modmapper > backups/modmapper-$(date +'%Y-%m-%d').dump -find backups/modmapper-*.dump -mtime +30 --type f --delete +pg_dump -h localhost -U modmapper -Fc modmapper > backups/modmapper-$(date +'%Y-%m-%d').dump +find backups/modmapper-*.dump -mtime +30 -type f -delete rclone sync backups/* dropbox:modmapper \ No newline at end of file