fix nettoyage de dumps PG
This commit is contained in:
parent
dc70f9937c
commit
0a3d7996a7
|
@ -228,9 +228,9 @@ if [ "${LOCAL_TASKS}" = "1" ]; then
|
||||||
## PostgreSQL
|
## PostgreSQL
|
||||||
|
|
||||||
## Purge previous dumps
|
## Purge previous dumps
|
||||||
# rm ${LOCAL_BACKUP_DIR}/pg.*.gz
|
# rm -rf ${LOCAL_BACKUP_DIR}/pg.*.gz
|
||||||
# rm ${LOCAL_BACKUP_DIR}/pg-backup.tar
|
# rm -rf ${LOCAL_BACKUP_DIR}/pg-backup.tar
|
||||||
# rm ${LOCAL_BACKUP_DIR}/postgresql/*
|
# rm -rf ${LOCAL_BACKUP_DIR}/postgresql/*
|
||||||
## example with pg_dumpall (warning: you need space in ~postgres)
|
## example with pg_dumpall (warning: you need space in ~postgres)
|
||||||
# su - postgres -c "pg_dumpall > ~/pg.dump.bak"
|
# su - postgres -c "pg_dumpall > ~/pg.dump.bak"
|
||||||
# mv ~postgres/pg.dump.bak ${LOCAL_BACKUP_DIR}/
|
# mv ~postgres/pg.dump.bak ${LOCAL_BACKUP_DIR}/
|
||||||
|
|
Loading…
Reference in a new issue