fix nettoyage de dumps PG

This commit is contained in:
Jérémy Lecour 2022-02-03 16:05:34 +01:00 committed by Jérémy Lecour
parent dc70f9937c
commit 0a3d7996a7
1 changed files with 3 additions and 3 deletions

View File

@ -228,9 +228,9 @@ if [ "${LOCAL_TASKS}" = "1" ]; then
## PostgreSQL
## Purge previous dumps
# rm ${LOCAL_BACKUP_DIR}/pg.*.gz
# rm ${LOCAL_BACKUP_DIR}/pg-backup.tar
# rm ${LOCAL_BACKUP_DIR}/postgresql/*
# rm -rf ${LOCAL_BACKUP_DIR}/pg.*.gz
# rm -rf ${LOCAL_BACKUP_DIR}/pg-backup.tar
# rm -rf ${LOCAL_BACKUP_DIR}/postgresql/*
## example with pg_dumpall (warning: you need space in ~postgres)
# su - postgres -c "pg_dumpall > ~/pg.dump.bak"
# mv ~postgres/pg.dump.bak ${LOCAL_BACKUP_DIR}/