Import the files and templates from postgresql_server to anitya backend

This commit is contained in:
Pierre-Yves Chibon 2014-10-01 11:14:59 +02:00
parent 7602b3bb79
commit b61ce8ede5
3 changed files with 87 additions and 0 deletions

View file

@ -0,0 +1,6 @@
#!/bin/bash
# Backup a database *locally* to /backups/.
DB=$1
/usr/bin/pg_dump -C $DB | /usr/bin/xz > /backups/$DB-$(date +%F).dump.xz