Menu

Backup and Restore

This article provides the latest instructions to backup and restore data of all qTest applications in your OnPremise environment. If your current version of Manager is 7.7.x or older, please see the older instructions instead: Legacy Backup and Restore.

Before you begin

  • Each application in the qTest platform store data in its own database, except qTest Launch which shares the same database with qTest Manager.
  • Some applications also store additional data on disk, e.g. qTest Manager stores attachments, qTest Sessions stores captured screenshots on local disk storage
  • You should backup data of all qTest applications, including, but not limited to databases and data files. This will ensure data consistency between applications if you restore the data at some point in the future

Shut Down All qTest Applications

Make sure you shut down all qTest applications before doing a backup or restore. This instruction assumes that you have installed every qTest application as one of the following:

  • a service on Windows environment
  • a service on Docker environment
  • a daemon on Linux environment

Dependent on your deployment model, you'll need to perform different steps to shutdown qTest applications.

Shutdown qTest applications on Windows

Single Server Install on Windows

  • Access to the Windows server where one or all qTest applications are installed
  • Open Services Windows
  • Look for a service named qtest and stop it

Load Balancer Install on Windows

  • Access to every server that you have installed a qTest application, e.g. qTest Manager, qTest Sessions, qTest Launch, qTest Insights, qTest Parameters
  • Open Services window
  • Look for a service named qtest and stop it

Shutdown qTest applications on Linux (non Docker)

Single Server Install on Linux

  • Access to the Linux server that you have installed qTest application(s), e.g. qTest Manager, qTest Sessions, qTest Launch, qTest Insights, qTest Parameters
  • Open Terminal
  • Execute below command to stop qtest daemon:
    systemctl stop qtest

Load Balancer Install on Linux

  • Access to every Linux server that you have installed a qTest application(s), e.g. qTest Manager, qTest Sessions, qTest Launch, qTest Insights, qTest Parameters
  • Open Terminal
  • Execute below command to stop qtest daemon:
    systemctl stop qtest

Shutdown qTest applications on Docker

Single Server Install on Docker

  • Access a Docker host with a user which was added to Docker user group
  • Shutdown the Docker host

Load Balancer Install on Docker

  • Access to every Docker host with a user which was added to Docker user group
  • Shutdown the Docker host

Backup and Restore qTest Manager data on Windows

Backup qTest Manager data on Windows

NOTE: shut down all qTest applications before you begin.

Backup qTest Manager database

Access to the server where qTest Manager is installed. Navigate to the installation directory of qTest Manager. Open file qtest.config. Navigate to the postgres section. Collect the below information, in blue.

external {
postgres {
    host = '[IP or hostname of PostgreSQL server]'
    port = [PostgreSQL server port number]
}
auth {
user = '[PostgreSQL username]'
pass = '[PostgreSQL user password]'
}
db {
qtest = '[Database name of qTest Manager]'
}
}

Next, access to PostgreSQL server. Open the Command Prompt as an Administrator. Access to the bin directory under your PostgreSQL's installation directory (eg: C:\Program Files\PostgreSQL\9.5\bin). Execute the following command to backup qTest Manager database. Note: replace text in the brackets with the information you collected from previous step.

pg_dump.exe --host=[IP or hostname of PostgreSQL server] --port=[PostgreSQL server port number] --username=[PostgreSQL username] --password --dbname=[Database name of qTest Manager] > qtestmanager_backup.sql

When being prompt for password, enter the PostgreSQL user password you collected in the qtest.config file.

If the command execution is successful, the backup database will be created in qtestmanager_backup.sql

Backup qTest Manager's data files

Back up qTest Manager's data files stored in the directory as defined in qtest.config file, as shown below, in blue.

external {
  manager {
    data = '[path to directory where data files are stored]'
  }
}

Restore qTest Manager data on Windows

NOTE: shut down all qTest applications before you begin.

Restore qTest Manager database

Access to the server where qTest Manager is installed. Navigate to the installation directory of qTest Manager. Open file qtest.config. Navigate to the postgres section. Collect the below information, in blue.

external {
postgres {
    host = '[IP or hostname of PostgreSQL server]'
    port = [PostgreSQL server port number]
}
auth {
user = '[PostgreSQL username]'
pass = '[PostgreSQL user password]'
}
db {
qtest = '[Database name of qTest Manager]'
}
}

Next, access to PostgreSQL server. Open the Command Prompt as an Administrator. Access to the bin directory under your PostgreSQL's installation directory (eg: C:\Program Files\PostgreSQL\9.5\bin). Execute the following command to restore qTest Manager database. Note: replace text in the brackets with the information you collected from previous step, replace [backup_file].sql with the path to the backup file.

psql.exe --host=[IP or hostname of PostgeSQL server] --port=[PostgreSQL server port number] --username=[PostgreSQL username] --password --dbname=[Database name of qTest Manager] < backup_file.sql 

When being prompt for password, enter the PostgreSQL user password you collected in the qtest.config file.

Restore qTest Manager data files

Next, restore the qTest Manager data files to the location defined in qtest.config file, as shown below, in blue.

external {
  manager {
    data = '[path to directory where data files are stored]'
  }
}

Backup and Restore qTest Manager data on Linux

Backup qTest Manager data on Linux

NOTE: shut down all qTest applications before you begin.

Backup qTest Manager database

Access to Linux server where qTest Manager is installed. Access to the installation directory of qTest Manager. Open file qtest.config. Navigate to the postgres section. Collect the below information, in blue.

external {
postgres {
    host = '[IP or hostname of PostgreSQL server]'
    port = [PostgreSQL server port number]
}
auth {
user = '[PostgreSQL username]'
pass = '[PostgreSQL user password]'
}
db {
qtest = '[Database name of qTest Manager]'
...
}
}

Next, access to PostgreSQL server. Open the Terminal. Execute below command to backup qTest Manager database. Replace text in the brackets with the value you collected in previous step.

pg_dump --host=[IP or hostname of PostgreSQL server] --port=[PostgreSQL server port number] --username=[PostgreSQL username] --password --dbname=[Database name of qTest Manager] > qtestmanager_backup.sql

When being prompt for password, enter the PostgreSQL user password you collected in the qtest.config file.

Backup qTest Manager's data files

Back up qTest Manager's data files stored in the directory as defined in qtest.config file, as shown below, in blue.

external {
  manager {
    data = '[path to directory where data files are stored]'
  }
}

Restore qTest Manager data on Linux

NOTE: shut down all qTest applications before you begin.

Restore qTest Manager database

Access to the server where qTest Manager is installed. Navigate to the installation directory of qTest Manager. Open file qtest.config. Navigate to the postgres section. Collect the below information, in blue.

external {
postgres {
    host = '[IP or hostname of PostgreSQL server]'
    port = [PostgreSQL server port number]
}
auth {
user = '[PostgreSQL username]'
pass = '[PostgreSQL user password]'
}
db {
qtest = '[Database name of qTest Manager]'
}
}

Next, access to PostgreSQL server. Open Terminal and execute the following command to restore qTest Manager database. Note: replace text in the brackets with the information you collected from previous step, replace backup_file.sql with the path to the backup file.

psql --host=[IP or hostname of PostgreSQL server] --port=[PostgreSQL server port number] --username=[PostgreSQL username] --password --dbname=[Database name of qTest Manager] < backup_file.sql 

When being prompt for password, enter the PostgreSQL user password you collected in the qtest.config file.

Restore qTest Manager data files

Next, restore the qTest Manager data files to the location defined in qtest.config file, as shown below, in blue.

external {
  manager {
    data = '[path to directory where data files are stored]'
  }
}

Backup and Restore qTest Manager data on Docker

Backup qTest Manager data on Docker

NOTE: shut down all qTest applications before you begin.

If you deploy qTest Manager on multiple Docker hosts, please repeat the following steps on each host.

  1. Access a Docker host with a user which was added to Docker user group
  2. Make sure the backup command has executable permission
    $ chmod +x ./backup
  3. Run the following command to create a backup file in the Docker Host
    $ ./backup

    It 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.

  4. 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 qTest Manager data on Docker

If you deploy qTest Manager on multiple Docker hosts, please repeat the following steps for each host.

  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]

Backup and Restore qTest Sessions data on Windows

Backup qTest Sessions data on Windows

NOTE: shut down all qTest applications before you begin.

Backup qTest Sessions database

Access to the server where qTest Sessions is installed. Navigate to the installation directory of qTest Sessions. Open file qtest.config. Navigate to the postgres section. Collect the below information, in blue.

external {
postgres {
    host = '[IP or hostname of PostgreSQL server]'
    port = [PostgreSQL server port number]
}
auth {
user = '[PostgreSQL username]'
pass = '[PostgreSQL user password]'
}
db {
session = '[Database name of qTest Sessions]'
}
}

Next, access to PostgreSQL server. Open the Command Prompt as an Administrator. Access to the bin directory under your PostgreSQL's installation directory (eg: C:\Program Files\PostgreSQL\9.5\bin). Execute the following command to backup qTest Sessions database. Note: replace text in the brackets with the information you collected from previous step.

pg_dump.exe --host=[IP or hostname of PostgreSQL server] --port=[PostgreSQL server port number] --username=[PostgreSQL username] --password --dbname=[Database name of qTest Sessions] > qtestsessions_backup.sql

When being prompt for password, enter the PostgreSQL user password you collected in the qtest.config file.

If the command execution is successful, the backup database will be created in qtestsessions_backup.sql

Backup qTest Sessions' data files

Back up qTest Sessions's data files being stored in the directory configured in qtest.config file, as shown below, in blue

Note:

  • You only need to backup the qTest Sessions data files if the storage type is configured as disk_storage, and the data files that need to be backup is located in the path specified in the rootpath field.
  • If the storage type is configured to amazon_s3, follow the Amazon S3 instructions to backup qTest Sessions data
...
sessions {
storage {
// value must be in ['amazon_s3', 'disk_storage']
// * amazon_s3: stores resource files on amazon ec2
// * disk_storage: stores resource files on local disk
type = 'disk_storage'
...
rootpath = '/absolute/path/to/sessions/resources'
}
...
}

Restore qTest Sessions data on Windows

NOTE: shut down all qTest applications before you begin.

Restore qTest Sessions database

Access to the server where qTest Sessions is installed. Navigate to the installation directory of qTest Sessions. Open file qtest.config. Navigate to the postgres section. Collect the below information, in blue.

external {
postgres {
    host = '[IP or hostname of PostgreSQL server]'
    port = [PostgreSQL server port number]
}
auth {
user = '[PostgreSQL username]'
pass = '[PostgreSQL user password]'
}
db {
session = '[Database name of qTest Sessions]'
}
}

Next, access to PostgreSQL server. Open the Command Prompt as an Administrator. Access to the bin directory under your PostgreSQL's installation directory (eg: C:\Program Files\PostgreSQL\9.5\bin). Execute the following command to restore qTest Sessions database. Note: replace text in the brackets with the information you collected from previous step, replace qtestsessions_backup.sql with the path to the backup file.

psql.exe --host=[IP or hostname of PostgreSQL server] --port=[PostgreSQL server port number] --username=[PostgreSQL username] --password --dbname=[Database name of qTest Sessions] < qtestsessions_backup.sql 

When being prompt for password, enter the PostgreSQL user password you collected in the qtest.config file.

Restore qTest Sessions data files

Next, restore the qTest Sessions data files to the location defined in qtest.config file, as shown below, in blue.

Note:

  • You only need to backup and restore the qTest Sessions data files if the storage type is configured as disk_storage, and the data files that need to be backup is located in the path specified in the rootpath field.
  • If the storage type is configured to amazon_s3, follow the Amazon S3 instructions to backup and restore qTest Sessions data
...
sessions {
storage {
// value must be in ['amazon_s3', 'disk_storage']
// * amazon_s3: stores resource files on amazon ec2
// * disk_storage: stores resource files on local disk
type = 'disk_storage'
...
rootpath = '/absolute/path/to/sessions/resources'
}
...
}

Backup and Restore qTest Sessions data on Linux

Backup qTest Sessions data on Linux

NOTE: shut down all qTest applications before you begin.

Backup qTest Sessions database

Access to Linux server where qTest Sessions is installed. Access to the installation directory of qTest Manager. Open file qtest.config. Navigate to the postgres section. Collect the below information, in blue.

external {
postgres {
    host = '[IP or hostname of PostgreSQL server]'
    port = [PostgreSQL server port number]
}
auth {
user = '[PostgreSQL username]'
pass = '[PostgreSQL user password]'
}
db {
session = '[Database name of qTest Sessions]'
}
}

Next, access to PostgreSQL server. Open the Terminal. Execute below command to backup qTest Manager database. Replace text in the brackets with the value you collected in previous step.

pg_dump --host=[IP or hostname of PostgreSQL server] --port=[PostgreSQL server port number] --username=[PostgreSQL username] --password --dbname=[Database name of qTest Sessions] > qtestsessions_backup.sql

When being prompt for password, enter the PostgreSQL user password you collected in the qtest.config file.

Backup qTest Sessions' data files

Back up qTest Manager's data files stored in the directory as defined in qtest.config file, as shown below, in blue.

Note:

  • You only need to backup the qTest Sessions data files if the storage type is configured as disk_storage, and the data files that need to be backup is located in the path specified in the rootpath field.
  • If the storage type is configured to amazon_s3, follow the Amazon S3 instructions to backup qTest Sessions data
...
sessions {
storage {
// value must be in ['amazon_s3', 'disk_storage']
// * amazon_s3: stores resource files on amazon ec2
// * disk_storage: stores resource files on local disk
type = 'disk_storage'
...
rootpath = '/absolute/path/to/sessions/resources'
}
...
}

Restore qTest Sessions data on Linux

NOTE: shut down all qTest applications before you begin.

Restore qTest Sessions database

Access to the server where qTest Sessions is installed. Navigate to the installation directory of qTest Manager. Open file qtest.config. Navigate to the postgres section. Collect the below information, in blue.

external {
postgres {
    host = '[IP or hostname of PostgreSQL server]'
    port = [PostgreSQL server port number]
}
auth {
user = '[PostgreSQL username]'
pass = '[PostgreSQL user password]'
}
db {
session = '[Database name of qTest Sessions]'
}
}

Next, access to PostgreSQL server. Open Terminal and execute the following command to restore qTest Manager database. Note: replace text in the brackets with the information you collected from previous step, replace qtestsessions_backup.sql with the path to the backup file.

psql --host=[IP or hostname of PostgreSQL server] --port=[PostgreSQL server port number] --username=[PostgreSQL username] --password --dbname=[Database name of qTest Sessions] < qtestessions_backup.sql 

When being prompt for password, enter the PostgreSQL user password you collected in the qtest.config file.

Restore qTest Sessions data files

Next, restore the qTest Sessions data files to the location defined in qtest.config file, as shown below, in blue.

Note:

  • You only need to backup and restore the qTest Sessions data files if the storage type is configured as disk_storage, and the data files that need to be backup is located in the path specified in the rootpath field.
  • If the storage type is configured to amazon_s3, follow the Amazon S3 instructions to backup and restore qTest Sessions data
...
sessions {
storage {
// value must be in ['amazon_s3', 'disk_storage']
// * amazon_s3: stores resource files on amazon ec2
// * disk_storage: stores resource files on local disk
type = 'disk_storage'
...
rootpath = '/absolute/path/to/sessions/resources'
}
...
}

Backup and Restore qTest Sessions data on Docker

Backup qTest Sessions data on Docker

NOTE: shut down all qTest applications before you begin.

If you deploy qTest Sessions on multiple Docker hosts, please repeat the following steps on each host.

  1. Access a Docker host with a user which was added to Docker user group
  2. Make sure the backup command has executable permission
    $ chmod +x ./backup
  3. Run the following command to create a backup file in the Docker Host
    $ ./backup

    It 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.

  4. 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 qTest Sessions data on Docker

If you deploy qTest Sessions on multiple Docker hosts, please repeat the following steps for each host.

  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]

 

Backup and Restore qTest Parameters data on Windows

Backup qTest Parameters data on Windows

NOTE: shut down all qTest applications before you begin.

Backup qTest Parameters database

Access to the server where qTest Parameters is installed. Navigate to the installation directory of qTest Parameters. Open file qtest.config. Navigate to the  mongo section. Collect the below information, in blue.

external {
mongo {
host = '[IP or hostname of MongoDB Server]:[MongoDB Server Port]'
replSet = '[replicaSet name]'
auth {
user = '[MongoDB username]'
pass = '[MongoDB user password]'
db = '[MongoDB authentication database name]'
ssl = false
}
}
}

Next, access to the server where MongoDB is installed. Open the Command Prompt as an Administrator. Access to the bin directory under your MongoDB installation directory (eg: C:\Program Files\MongoDB\Server\3.4\bin). Execute the following command to backup qTest Sessions database. Note: replace text in the brackets with the information you collected from previous step.

C:\Program Files\MongoDB\Server\3.4\bin>mongodump --host [replicaSet name]/[IP or hostname of MongoDB server]:[MongoDB Server Port] --authenticationDatabase [MongoDB authentication database name] --username [MongoDB username] --password [MongoDB user password] --db [qTest Parameters database name] --out [path to backup directory]
  • --host: specify MongoDB host name or IP address
  • --authenticationDatabase: specify MongoDB authentication database name. This is MongoDB's system database, default name is admin
  • --username: user name to authenticate with MongoDB
  • --password: user password to authenticate with MongoDB
  • --db: specify qTest Parameters database name
    • Note: qTest Parameters creates database in the run time if it does not exist, and default database name is nephele. If you changed the database name for some reason, make sure you use that database name as a value for --db parameter
  • --out: specify a folder to store backup database

Example:

C:\Program Files\MongoDB\Server\3.4\bin>mongodump --host rs0/10.0.10.113:27017 --authenticationDatabase admin --username tdm --password password --db nephele --out "C:\backup"

If the command is successful, the backup database will be stored in C:\backup\nephele folder.

Restore qTest Parameters data on Windows

NOTE: shut down all qTest applications before you begin.

Restore qTest Parameters database

Access to the server where qTest Parameters is installed. Navigate to the installation directory of qTest Parameters. Open file qtest.config. Navigate to the mongo section. Collect the below information, in blue.

external {
mongo {
host = '[IP or hostname of MongoDB]:[MongoDB Server Port]'
replSet = '[replicaSet name]'
auth {
user = '[MongoDB username]'
pass = '[MongoDB user password]'
db = '[MongoDB authentication database name]'
ssl = false
}
}
}

Next, access to server where MongoDB is installed. Open the Command Prompt as an Administrator. Access to the bin directory under your MongoDB installation directory (eg: C:\Program Files\MongoDB\Server\3.4\bin). Execute the following command to restore qTest Parameters database. Note: replace text in the brackets with the information you collected from previous step.

C:\Program Files\MongoDB\Server\3.4\bin>mongorestore --host [replicaSet name]/[IP or hostname of MongoDB server]:[MongoDB Server Port] --authenticationDatabase [MongoDB authentication database name] --username [MongoDB username] --password [MongoDB user password] --db [qTest Parameters database name] [path to backup directory] --drop
  • --host: specify MongoDB host name or IP address
  • --authenticationDatabase: specify MongoDB authentication database name. This is MongoDB's system database, default name is admin
  • --username: user name to authenticate with MongoDB
  • --password: user password to authenticate with MongoDB
  • --db: specify qTest Parameters database name
    • Note: qTest Parameters creates database in the run time if it does not exist, and default database name is nephele. If you changed the database name for some reason, make sure you use that database name as a value for --db parameter

Example:

C:\Program Files\MongoDB\Server\3.4\bin>mongorestore --host rs0/10.0.10.113:27017 --authenticationDatabase admin --username tdm --password password --db nephele "C:\backup\nephele" --drop

Backup and Restore qTest Parameters data on Linux

Backup qTest Parameters data on Linux

NOTE: shut down all qTest applications before you begin.

Backup qTest Parameters database

Access to Linux server where qTest Parameters is installed. Access to the installation directory of qTest Parameters. Open file qtest.config. Navigate to the mongo section. Collect the below information, in blue.

external {
mongo {
host = '[IP or hostname of MongoDB server]:[MongoDB Server Port]'
replSet = 'rs0'
auth {
user = '[MongoDB username]'
pass = '[MongoDB user password]'
db = '[MongoDB Authentication database name]'
ssl = false
}
}
}

Next, access to the server where MongoDB is installed. Open the Terminal. Execute below command to backup qTest Parameters database. Replace blue text with the value you collected in previous step.

$ mongodump --host [replicaSet Name]/[IP or hostname of MongoDB server]:[MongoDB Server Port] --authenticationDatabase [MongoDB authentication database name] --username [MongoDB username] --password [MongoDB user password] --db [qTest Parameters database name] --out [path to backup directory]
  • --host: specify MongoDB host name or IP address
  • --authenticationDatabase: specify MongoDB authentication database name. This is MongoDB's system database, default name is admin
  • --username: user name to authenticate with MongoDB
  • --password: user password to authenticate with MongoDB
  • --db: specify qTest Parameters database name.
    • Note: qTest Parameters creates database at the run time if it does not exist, and default database name is nephele. If you changed the database name for some reason, make sure you use that database name as a value for --db parameter
  • --out: specify a folder to store backup database

Example:

$ mongodump --host rs0/10.0.10.113:27017 --authenticationDatabase admin --username tdm --password password --db nephele --out "/opt/backup/mongodump-2018-02-28"

If the command is successful, the backup database will be stored in /opt/backup/mongodump-2018-02-28/nephele folder.

Restore qTest Parameters data on Linux

NOTE: shut down all qTest applications before you begin.

Restore qTest Parameters database

Access to the server where qTest Parameters is installed. Navigate to the installation directory of qTest Parameters. Open file qtest.config. Navigate to the mongo section. Collect the below information, in blue.

external {
mongo {
host = '[IP or hostname MongoDB server]:[MongoDB Server Port]'
replSet = 'rs0'
auth {
user = '[MongoDB username]'
pass = '[MongoDB user password]'
db = '[MongoDB authentication database name]'
ssl = false
}
}
}

Next, access to the server where MongoDB is installed. Open Terminal and execute the following command to restore qTest Parameters database. Note: replace text in the brackets with the information you collected from previous step. 

$ mongorestore --host [replicaSet Name]/[IP or hostname of MongoDB server]:[MongoDB Server Port] --authenticationDatabase [MongoDB authentication database name] --username [MongoDB username] --password [MongoDB user password] --db [qTest Parameters database name] [path to backup directory] --drop
  • --host: specify MongoDB host name or IP address
  • --authenticationDatabase: specify MongoDB authentication database name. This is MongoDB's system database, default name is admin
  • --username: user name to authenticate with MongoDB
  • --password: user password to authenticate with MongoDB
  • --db: specify qTest Parameters database name
    • Note: qTest Parameters create database at the run time if it does not exist, and default database name is nephele. If you changed the database name for some reason, make sure you use that database name as a value for --db parameter

Example:

$ mongorestore --host rs0/10.0.10.113:27017 --authenticationDatabase admin --username tdm --password password --db nephele "/opt/backup/mongodump-2018-02-28/nephele" --drop

Backup and Restore qTest Parameters data on Docker

Backup qTest Parameters data on Docker

NOTE: shut down all qTest applications before you begin.

If you deploy qTest Parameters on multiple Docker hosts, please repeat the following steps on each host.

  1. Access a Docker host with a user which was added to Docker user group
  2. Make sure the backup command has executable permission
    $ chmod +x ./backup
  3. Run the following command to create a backup file in the Docker Host
    $ ./backup

    It 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.

  4. 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 qTest Parameters data on Docker

If you deploy qTest Sessions on multiple Docker hosts, please repeat the following steps for each host.

  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]

 

 

Powered by Zendesk