Versions of my copy of WordPress

Get WordPress and the host. Install it, add plugins. Customize as you wish. This will give us many files and databases.

We already save each file in any version control system (actually GIT SVN).

So, what is the best way to keep this “backup” fully and easily recoverable?

<sub> I believe that the "best way" would be a simple and / or automatic way (as opposed to this ) for backing up and restoring the database with just one click. Sub>

+3
source share
2 answers

tar mysqldump. , .
tar:

$ tar -cvzf /path/to/storage/backup.tar /path/to/wordpress/installation

, . :

$ tar -C /path/to/wordpress/installation -xvzf /path/to/storage/backup.tar

MySQLdump:

$ mysqldump --opt -u [uname] -p[password] [dbname] > [backupfile.sql]

, sql dump mysql. :

$ mysql -u [uname] -p[password] [db_to_restore] < [backupfile.sql]

, -p . , (phpMyAdmin ). MySQLdump , , .

, cron.

+3

Wordpress XCloner Backup and Restore. SVN. cron ...

0

Source: https://habr.com/ru/post/1792666/


All Articles