public
Description: Simple backup shell scripts
Homepage:
Clone URL: git://github.com/raphinou/shbackup.git
shbackup / dumppostgresql.sh
100755 10 lines (6 sloc) 0.269 kb
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
# This needs a ~/.pgpass file with content similar to:
# *:*:*:postgres:password
# see http://www.postgresql.org/docs/8.1/interactive/libpq-pgpass.html
 
. ./backup_vars.sh
 
$postgresql_dir/bin/pg_dumpall -U postgres > $backup_dir/postgresql_databases.sql