Backup Guide

Making a backup copy

To do this, log into the EasyDCIM server using SSH and run the command:

sudo wget https://www.easydcim.com/download/scripts/easydcim_backup.sh -O /opt/easydcim_backup.sh && sudo bash /opt/easydcim_backup.sh

The backup files will be made automatically and saved in the /opt/backups/ directory. There will be two backup files: database and files. If a local agent is detected then the script will also back up the Remote Agent’s database.

Importing the EasyDCIM database

To restore the database, run the command:

php /opt/easydcim/console database:import /opt/backups/EASYDCIM_BACKUP_FILE.sql

In the place of /opt/backups/EASYDCIM_BACKUP_FILE.sql, specify the path to the file containing the copy of the database. When importing the database, we will need to confirm that the current database will be deleted and replaced with the database from the SQL file.

Importing the Remote Agent database

To restore the database, run the command:

php /opt/easydcim_remote/artisan database:import /opt/backups/REMOTE_AGENT_BACKUP_FILE.sql

In the place of /opt/backups/REMOTE_AGENT_BACKUP_FILE.sql, specify the path to the file containing the copy of the database. When importing the database, we will need to confirm that the current database will be deleted and replaced with the database from the SQL file.