Overview

This guide will help in taking the data backup for IDHUB, the backup will be created in such a way that single database can be backed up and restored one at a time, so it is up to the end user what database needs to be backed up or restored

Before starting the process, few things needs to be checked/ done (for completion) as below:

  • Backup.sh file
  • Restore.sh file

Detailed steps for each one of the above required files are provided below

Step 1: Backup.sh file

The Backup.sh file will be already provided in the IDHUB installation package from here

The backup.sh file will facilitate to take backup of a single database from a list of database available in the IDHUB, the end user needs to provide executable permission to the Backup.sh script, run the backup.sh file, select the database which needs to be backed up and that's it

Give executable permission

This step will allow the Backup.sh file to give proper permission in order to run the jobs which it needs to perform

Go to the required directory where the file is present, navigate 

cd idhub-docker-<version of the idhub>/
BASH


Provide executable permission to the Backup.sh file by entering the below command

chmod +x Backup.sh
BASH

Run Backup.sh file

This command will run the file so that it would perform the jobs required 

./Backup.sh
BASH

Select the database to backup

After you run the file, it will prompt to the end user to select a numeric number with a list of database which it needs to backup 

After the database list is selected, just hit ENTER and that's it, the database is backed up 


Step 2: Restore.sh file

The Restore.sh file will be already provided in the IDHUB installation package from here

The Restore.sh file will facilitate restoration of a single database from a list of database available in the IDHUB, the end user needs to provide executable permission to the Restore.sh script, run the Restore.sh file, select the database which needs to be restored up and that's it

Restore will only work if you have already backup up the required database earlier

Give executable permission

This step will allow the Restore.sh file to give proper permission in order to run the jobs which it needs to perform

Go to the required directory where the file is present, navigate 

cd idhub-docker-<version of the idhub>/
BASH


Provide executable permission to the Restore.sh file by entering the below command

chmod +x Restore.sh
BASH


Run Restore.sh file

This command will run the file so that it would perform the jobs required 

./Restore.sh
BASH

Select the database to restore

After you run the file, it will prompt to the end user to select a numeric number with a list of database which it needs to be restored 

After the database list is selected, just hit ENTER and that's it, the database restoration process will take place