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