WordPress: Difference between revisions

Backup process
Backup process
Tag: visualeditor
 
Line 14: Line 14:


# sudo chmod 600 wpfolder/wp-config.php
# sudo chmod 600 wpfolder/wp-config.php
</syntaxhighlight>
== Backup process ==
* ''Last tested on Ubuntu 20.04.4 (2022/03/07)''
Backup database<syntaxhighlight lang="bash">
$ cd /www/blog-backup/
$ mysqldump --add-drop-table -u root -p mhanwp1 > 20220307-backup.sql
</syntaxhighlight>Backup files<syntaxhighlight lang="bash">
$ tar zcvf 20220307.tar.gz /www/blog
</syntaxhighlight>
</syntaxhighlight>