Skip to content

Instantly share code, notes, and snippets.

View SharkFourSix's full-sized avatar
💭
I may be slow to respond.

SharkFourSix

💭
I may be slow to respond.
View GitHub Profile
@SharkFourSix
SharkFourSix / pgsql_backup.sh
Created June 11, 2024 05:41 — forked from sirbrillig/pgsql_backup.sh
Postgresql daily backup script.
#!/bin/bash
#
# Backup a Postgresql database into a daily file.
#
BACKUP_DIR=/pg_backup
DAYS_TO_KEEP=14
FILE_SUFFIX=_pg_backup.sql
DATABASE=
USER=postgres