adding new role for upstreamfirst pagure instance

This commit is contained in:
Tim Flink 2017-05-17 20:07:28 +00:00
parent 8eb3174bc1
commit f3bf1103b8
21 changed files with 1287 additions and 32 deletions

View file

@ -0,0 +1,10 @@
#!/bin/bash
# Backup a database *locally* to /backups/.
DB=$1
# Make our latest backup
/usr/bin/pg_dump -C $DB | /usr/bin/xz > /backups/$DB-$(date +%F).dump.xz
# Also, delete the backup from a few days ago.
rm -f /backups/$DB-$(date --date="3 days ago" +%F).dump.xz