Backup & Restore

As of v4.14, DomainMOD has a Backup & Restore utility. This feature enables you to perform complete backups and restores of your DomainMOD database. This allows you to export your entire system in a single file so that it can easily be backed up and/or restored, which is helpful if you want to perform regular backups of your data, you need to move DomainMOD to a new server, or you want to change your installation method.

This process backs up the data saved in your database. If you also want to save your database connection information, you should backup your /_includes/config.inc.php file.

Note

Before you can use Backup & Restore you must update the permissions on the /var/www/html/domainmod/temp folder ("chmod 777 /var/www/html/domainmod/temp"). If you're unsure how to do this your web hosting provider should be able to assist you.

The above path (/var/www/html/domainmod/temp) will need to be modified for your specific web server and DomainMOD installation location.

Backup

To Backup your DomainMOD database:

  1. Login to DomainMOD as an administrator

  2. Navigate to Administration -> Backup & Restore

  3. In the Backup section, click the Backup Entire Database button

  4. At this point you will be prompted to download the file domainmod-backup.sql, which contains a copy of your entire database

Restore

Warning

Before restoring a backup file you should backup your existing data using the above Backup feature. This is in case something goes wrong with restoring the new database and you need to restore the old one.

To Restore your DomainMOD database:

  1. Login to DomainMOD as an administrator

  2. Navigate to Administration -> Backup & Restore

  3. In the Restore section, click the Choose File button and then select the domainmod-backup.sql file that you want to restore

  4. Click the Restore Entire Database button

  5. Once the restore is complete you will automatically be logged out of DomainMOD. You should now be able to login using the accounts that you just restored.

Migrating

The below steps walk you through how to migrate DomainMOD from one server to another.

Warning

Before migrating it's strongly recommended that you backup your DomainMOD installation directory and database. If something goes wrong during the migration process there may be no way to recover your data, and having a backup of your installation directory and database will allow you to easily restore your data.

  1. [Old Server] Upgrade to the newest version of DomainMOD

  2. [Old Server] Export a copy of your DomainMOD database using the above Backup feature

  3. [New Server] Download and install the newest version of DomainMOD

  4. [New Server] Login to DomainMOD and navigate to Administration -> Backup & Restore

  5. [New Server] In the Restore section, click the Choose File button and then select the domainmod-backup.sql file that you want to restore

  6. [New Server] Click the Restore Entire Database button

  7. [New Server] Once the restore is complete you will automatically be logged out of DomainMOD. You should now be able to login using the accounts that you just restored.

  8. That's it! DomainMOD has now been migrated to your new server.