Created
August 18, 2014 14:45
-
-
Save JohnPreston/5d92cf7084ea92749e9d to your computer and use it in GitHub Desktop.
DB Backup working
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 pg_dumpall --oids -c -h/var/lib/eucalyptus/db/data -p8777 -Uroot -f~/eucalyptus_pg_dumpall-backup.sql | |
69 ll | |
70 pg_dumpall --oids -c -h/var/lib/eucalyptus/db/data -p8777 -Uroot -f ~/eucalyptus_pg_dumpall-backup.sql | |
71 tar -czvf ~/eucalyptus-keydir.tgz /var/lib/eucalyptus/keys | |
72 /etc/init.d/eucalyptus-cloud stop | |
73 ll | |
74 rm -rf /var/lib/eucalyptus/db | |
75 euca_conf --initialize | |
76 su eucalyptus -c "/usr/pgsql-9.1/bin/pg_ctl start -w -s -D/var/lib/eucalyptus/db/data -o '-h0.0.0.0/0 -p8777 -i'" | |
77 psql -U root -d postgres -p 8777 -h /var/lib/eucalyptus/db/data -f ~/eucalyptus_pg_dumpall-backup.sql | |
78 tar -xvf ~/eucalyptus-keysdir.tgz -C / | |
79 ll | |
80 tar -xvf ~/eucalyptus-keysdir.tgz -C / | |
81 tar -xvf ~/eucalyptus-keydir.tgz -C / | |
82 su eucalyptus -c "/usr/pgsql-9.1/bin/pg_ctl stop -D/var/lib/eucalyptus/db/data" | |
83 /etc/init.d/eucalyptus-cloud start | |
84 tail -f /var/log/eucalyptus/cloud-output.log | |
85 history | |
86 euca-describe-services | |
87 euca-describe-instances | |
88 euca-describe-volumes | |
89 euca-describe-snapshots | |
90 euca-create-volume --snapshot snap-c12f6998 -z emea-01 | |
91 euca-describe-volumes | |
92 history |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment