Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
service postgresql stop # Stop the server first
rm -rf /var/lib/postgresql/9.4/main # Remove the data directory
envdir /etc/wal-e.d/env /usr/local/bin/wal-e backup-fetch /var/lib/postgresql/9.4/main LATEST # Fetch the backup
restore_command = '/usr/bin/envdir /etc/wal-e.d/env /usr/local/bin/wal-e wal-fetch %f %p' # Create recovery.conf inside data directory
service postgresql start # Start the server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.