This commit is contained in:
2025-05-15 20:38:59 +02:00
parent 68794a2e77
commit 1a73b30ac7
2 changed files with 2 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ podman exec $CONTAINER_DB pg_dump -U $DB_USERNAME -F c -d $DB_DATABASE > $STAGIN
cp -r "$DATA" "$STAGING_DIR/data"
cp -r "$CONFIG" "$STAGING_DIR/config"
cp -r "$DB" "$STAGING_DIR/db"
tar -czf "$LOCAL_BACKUP/$BACKUP_NAME" -C "$STAGING_DIR" .
ls -1t "$LOCAL_BACKUP"/backup_*.tar.gz | tail -n +6 | xargs -r rm --