Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Back up your WordPress data

Project Description

This Python script is made for doing a complete backup of your WordPress blog’s data. It does exactly the same thing that the WordPress’ export feature.


With pip (recommanded)

pip install wordpress-backup-data

From sources

git clone
cd wordpress-backup-data
python install

How to

usage: wp-backup-data [-h] [-u USER] [-p PASSWORD] [-P] [-O] [-a ADDRESS]
                      [-d DIRECTORY] [--http] [--https]
                      [--ignore-certificate] [-v]

Do a backup of your WordPress data

optional arguments:
  -h, --help            show this help message and exit
  -u USER, --user USER  username to use
  -p PASSWORD, --password PASSWORD
                        password to use
  -P, --prompt-for-password
                        prompt for password to use
  -O, --prompt-for-otp  prompt for Yubikey OTP to use
  -a ADDRESS, --address ADDRESS
                        root address of the WordPress blog (examples:
                        '' or '')
  -d DIRECTORY, --directory DIRECTORY
                        directory where the backup file will be stored
  --http                use HTTP as protocol
  --https               use HTTPS as protocol (default)
  --ignore-certificate  ignore invalid certificates
  -v, --version         show program's version number and exit

Example: ./wp-backup-data -a -u user -P

Yubikey OTP support

If you have secured your WordPress blog with the Yubikey OTP plugin, the -O option is made for you ! By this way, you will be prompted to enter your OTP.

With Docker

docker run --rm -it -v <local path>:/backups

local path refers to the folder on your host system where the backup file will be stored.

If you want to store the backup file in your current directory :

docker run --rm -it -v $(pwd):/backups

And if you want to specify some options :

docker run --rm -it -v $(pwd):/backups -d /backups <options>


GPL version 3

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(4.6 kB) Copy SHA256 Hash SHA256
Source None Oct 10, 2017

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate