]> git.openstreetmap.org Git - chef.git/blob - cookbooks/db/templates/default/backup-db.erb
4f52e24d1f0468f174af9ba1cfa782d796916c5e
[chef.git] / cookbooks / db / templates / default / backup-db.erb
1 #!/bin/sh
2
3 # DO NOT EDIT - This file is being maintained by Chef
4
5 D=`date +%Y-%m-%d`
6 F=/store/backup/osm-${D}.dmp
7
8 pg_dump --user=backup --format=custom --file=$F openstreetmap
9
10 export RSYNC_RSH="ssh -ax -c arcfour"
11 rsync $F backup.openstreetmap.org::backup
12
13 rm -f $F