05. Data Backup and Restore on CentOS/Ubuntu using Docker

Before you begin

Please shut down all Docker hosts where qTest Manager and qTest Sessions are deployed

Back up

If you deploy qTest Manager on multiple Docker hosts, please repeat the following steps on each of them:

  1. Access a Docker host with a user which was added to Docker user group
  2. Run the following command to create a backup file in the Docker Host
    $ ./backup
    		

    t will backup qTest on Docker host and save it as yyyy-mm-dd.tar.gz, in which yyyy-mm-dd is the date when the backup file was created.

  3. In case you want to backup and then download the backup file from the Docker host to your local machine, run this command
    $ ./backup pull
    		

    It will download yyyy-mm-dd.tar.gz, in which yyyy-mm-dd is the date when the backup file was created, to your current directory.

Restore

If you deploy qTest Manager on multiple Docker hosts, please repeat the following steps on each of them:

  1. Access a Docker host with a user which was added to Docker user group
  2. Run the following command to restore data from a backup file
    • You can use yyyy-mm-dd to restore from a specific date when the backup file was created
    • If it is omitted, the latest backup file will be used
    ./restore [yyyy-mm-dd]
    		
  3. If you want to restore from a backup file which was downloaded to your local machine, run this command and pass in the file path
    ./restore [path to yyyy-mm-dd.tar.gz]