How to Backup a MySQL Database With mysqldump mysqldump -u userNameWithPrivileges -p databaseName > outputFileName.sql How to Restore a mysqldump Backup mysql -u userNameWithPrivileges -p database < outputFileName.sql * Replace “userNameWithPrivileges” with the username of a MySQL account that can read/write to the database being backed up / restored.
Most of the instructions for mirroring a directory with Rsync involve mirroring the data to a different server. You can also use Rsync to sync or mirror a directory on the same computer as the source directory. Here is an example command on how to mirror two directories locally. In this example, /home/apache/public_html is the […]