Monday, August 15, 2011

XCloner Backup for WordPress

Searched for a Wordpress Backup plugin that can backup both database and WordPress files and here's the closest thing I could find that suits our needs...

Installation Phase:
- Download Xcloner Manager and extract
- Then place inside wp-content/plugins
- change owner and permission...
-- chown -R www-data:root xcloner-backup-and-restore
-- chmod -R 771 xcloner-backup-and-restore
- create a directory inside main wordpress directory
ex: mywpblog# mkdir administrator administrator/backups
- change owner...
-- chown -R www-data:root administrator/backups

Configuration Phase:
- Activate Xcloner in Plugins page
- open Xcloner link
- login as admin (both user and passw)
- open settings than set the "Backup Store Path" as...
/var/www/mywpblog/wp-content/plugins/xcloner-backup-and-restore/restore
(or to what path you like)

To Backup! Or not to backup! Let me count the ways! ;p
- open Generate Backup link
- most of the default settings are what you really needed so no need to tweak it more, unless you need other tweaks just do so.
- On "Backup Comments" you may put your comments (do I need to elaborate?)
- click "Continue" to proceed with the backup
- if no error occured let's continue to "View Backups"

Restoring Backup to a different location:
- go into the XCloner 'View Backups' area
- download the backup tar file you wish to restore
- after you have selected your backup click on the 'Clone it' button
- Xcloner will put the php scripts in the ftp (TAR.php & Xcloner.php)
- put the backup tar and the 2 php scripts in the target server
- create a directory for the wordpress extraction on the new server (ex mywpblog)
- open XCloner.php in the browser and fill up the necessary details. Make sure the target for extraction is in the created directory
- This process will extract the data from tar first then dump the database.
- After that the site can now be used.

Problems encountered:
- the images are not extracted properly. Manually extracted the tar file and all is good