Python script to backup Wordpress and database to a remote sftp server.
- Automatic detection of database details.
- Sftp backup to remote server.
- Gzip compression of archive file.
- Complete progress report on terminal.
Open the wpbackup.py and change the follwoing settings
* SFTP_HOST = '192.168.1.5'
* SFTP_USER = 'root'
* SFTP_PASSWD = 'myPassword'
* SFTP_DIR = '/var/ftp/pub/backupdir'
* SFTP_PORT = '22'
[root@server]# wpbackup.py /path/to/wordpress/installation [...]