Skip to content

Instantly share code, notes, and snippets.

View Victor-Fiamoncini's full-sized avatar
🏡
Working from home

Victor Fiamoncini Victor-Fiamoncini

🏡
Working from home
View GitHub Profile
@sirbrillig
sirbrillig / pgsql_backup.sh
Last active November 15, 2025 02:29 — forked from dangerousbeans/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