WordPress Backup

wp_backup_thumbnail_1

Backup your WordPress installation/site with one script.

This script can be used to perform backup and restores of a WordPress installation. The script can backup the WP installation under the webserver Document Root directory, preserving any modification that might have been made to the source code. It also can backup the WP database, preserving any WP content that is already there.

Features:

  • Ability to save both your WordPress files and WordPress database in one backup file.
  • Each backup file contains an MD5 sum used to check the file for corruption.
  • Perform backups/restores directly from the server or over FTP.
  • Restore the database directly to the MySQL server or to a file.
  • Automatically find and restore from latest backup file.
  • Query backup file for info, including command used to generate the backup file.
  • Password protect your backups.
  • Encrypt backup files.

Installation

The script does not need any installation. It can be run from anywhere, as long as the machine where it is being run can find the WordPress installation and contact the MySQL server where the WordPress database is hosted. Of course, for the database backup to work, the WordPress user has to have access capability to the MySQL server from the machine where the script is being run.

If you would like to use the encryption feature, make sure that the PyCrypto Python module is installed. (see Encryption section below).

Encryption

As of version 0.4.0, the script supports encrypting of the data content. This ability can be used to encrypt the portion of the BackupFile which contains the WordPress files and database. The header of the BackupFile will not be encrypted.

The encryption is handled by the PyCrypto module. The module is not included with this script on purpose. There are very strict rules about distributing encryption code and I am neither familiar with it, nor do I ever want to be. Therefore, if you want to use the encryption feature, you’ll have download and install the PyCrypto module yourself.

When a BackupFile is being encrypted, the script will ask you for a password. You can not encrypt a BackupFile without a password because it [the password] is used as the encryption key.

Future Development

If you have any features that you’d like to see implemented in this script, please let me know.

WordPress Backup Script
Version: 0.4.0
Categories:WordPress Backup, Code
Posted on:Apr 25th, 2010 09:28
Description:Python script used to backup a complete WordPress installation including the entire file tree and database content.
16.24 KB
31 Downloads
VN:F [1.9.4_1102]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.4_1102]
Rating: +1 (from 1 vote)

Popularity: 9% [?]