Defroster helps you restore your WordPress backup in a virtual machine to locally develop on your site or just to verify your backup.
This wouldn't be possible without Vagrant.
- You backup your WordPress site using any plugin that archives your files and the database.
I use BackWPup for that purpose.
Important: The archive must be a.tgz
or.tar.gz
file. The.sql
file must be located top-level in that archive. - Ruby, RubyGems and the latest version of VirtualBox are installed on your machine
- You copied such a backup archive to
cookbooks/wordpress/files/default/backwpup.tar.gz
-
Install Vagrant:
gem install vagrant
-
Build yourself a nice VM with your WordPress:
vagrant up
Be patient and wait for it to complete (takes less than 2 minutes on my machine).
That's it!
Now you can point your browser to http://localhost:8080 and marvel at your locally running website.
If you need shell access, execute the following command to get into the VM:
vagrant ssh
Your WordPress files are located in /var/www
, the Apache Virtual Host is configured in /etc/apache2/sites-enabled/wordpress
.
- Verify your backup works
- Hack on your site when you're offline
- Test something before deploying it
Here's what you do:
- Give Defroster a try and take the time to report if your backup is working out-of-the-box
- If it isn't, please create an issue
- If you can think of any enhancements, create an issue or send a pull request