Encrypt database backups
Bug #1356119 reported by
François Marier
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Libravatar (obsolete) |
Fix Released
|
High
|
François Marier |
Bug Description
The database dumps that are left on the server should be gpg-encrypted with my key.
To post a comment you must log in.
Here is the new backup script in /usr/local/ sbin/libravatar _backups:
#!/bin/sh
DUMP_DIR= "/var/backups/ libravatar"
# Perform fresh backup "$DUMP_ DIR/`date +%Y%m%dT%H%M%S`.pg"
DUMP_FILE=
pg_dump -Fc libravatar > $DUMP_FILE
chmod 600 $DUMP_FILE
# Encrypt backup
gpg --recipient 007c98d1 --encrypt $DUMP_FILE
rm $DUMP_FILE
# Purge old backups
find $DUMP_DIR -ctime +7 -delete