How-to Backup WordPress Site

By | February 15, 2015

Here are two commands to backup your wordpress site.

First you need to backup database:

mysqldump -uUSER -h127.0.0.1 -pPASSWORD DB_NAME > database.sql

Now you can archive www root folder:

tar -chvzf www.tar.gz /var/

After this manipulations you can copy this two files to the same place.

How to Restore WordPress Site

One thought on “How-to Backup WordPress Site

  1. Pingback: How-to Restore WordPress Site | Druss Blog

Leave a Reply

Your email address will not be published. Required fields are marked *