Created
May 15, 2012 14:15
-
-
Save beanieboi/2702092 to your computer and use it in GitHub Desktop.
Upgrade to Postgres 9.2 beta 1 on Ubuntu 12.04
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
# Install Postgres 9.2 from https://launchpad.net/~pitti/+archive/postgresql | |
# drop the cluster which gets created during the setup | |
pg_dropcluster --stop 9.2 main | |
# create a backup of your current cluster | |
rsync -a /var/lib/postgresql/9.1 /var/lib/postgresql/9.1.backup | |
# upgrade the the old 9.1 cluster | |
pg_upgradecluster 9.1 main /var/lib/postgresql/9.2 | |
# if everything is perfect, drop the old cluster | |
pg_dropcluster 9.1 main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment