1 2 3 4 |
# Clean old backup @daily find /backup/DB* -type f -mtime +7 -exec rm -f {} \; |
1 2 3 4 |
# Start Backup 0 3 * * * sudo -u postgres pg_dump DB01 | gzip > /backup/DB01-$(date "+\%Y-\%m-\%d").gz |
1 2 3 4 |
# Clean old backup @daily find /backup/DB* -type f -mtime +7 -exec rm -f {} \; |
1 2 3 4 |
# Start Backup 0 3 * * * sudo -u postgres pg_dump DB01 | gzip > /backup/DB01-$(date "+\%Y-\%m-\%d").gz |