10 lines
239 B
Text
10 lines
239 B
Text
|
#!/bin/bash
|
||
|
|
||
|
target="/var/tmp/postgresdumps"
|
||
|
|
||
|
pg_dumpall --globals-only | gzip --quiet --rsyncable >"$target/globals.sql.gz"
|
||
|
|
||
|
% for db in sorted(databases):
|
||
|
pg_dump -C "${db}" | gzip --quiet --rsyncable >"$target/db_${db}.sql.gz"
|
||
|
% endfor
|