1. Backup Files
Follow these steps to create a backup of your files.
- Run the Command: Open your terminal on your host machine and run the following command, replacing
<container_name_or_id>
with your actual Docker container identifier.docker exec -it <container_name_or_id> /opt/gamma/gamma_ui/dbscripts/scripts/backup_restore.sh
- Follow the Prompts:
The script will display a menu. You must enter the correct letters to proceed.- First Prompt:
Enter choice (B/R):
- Type B for Backup and press Enter.
- Second Prompt:
Enter choice (D/F):
- Type F for File and press Enter.
- First Prompt:
Result: The script will confirm the backup is in progress and then announce its completion. Your backup will be a .tar.gz
file saved in the mapped host directory (e.g., /home/${USER}/BrowserStackCodeQuality/gamma_data/backup/files
).

2. Restore Files
Warning: This process will overwrite your current files. When prompted with “Directory /opt/gamma_data/tenants already exists. Backup before replacing? (y/n):”, entering y
is highly recommended to create a new backup of your current files before proceeding with the restore.
- Prerequisites: The
.tar.gz
backup file you want to restore must be in your mapped host directory:/home/${USER}/BrowserStackCodeQuality/gamma_data:/opt/gamma_data/backup/files.
- Run the Command: Open your terminal on your host machine and run the following command, replacing
<container_name_or_id>
with your actual Docker container identifier.docker exec -it <container_name_or_id> /opt/gamma/gamma_ui/dbscripts/scripts/backup_restore.sh
- Follow the Prompts:
The script will display a menu. You must enter the correct letters to proceed.- First Prompt:
Enter choice (B/R):
- Type R for Restore and press Enter.
- Second Prompt:
Enter choice (D/F):
- TypeF for files and press Enter.
- The script will ask: “Directory /opt/gamma_data/tenants already exists. Backup before replacing? (y/n):”.
- Enter
y
to have the script create a backup of your current files automatically before the restore begins. This is highly recommended. - Enter
n
to proceed with the restore without creating a new backup.
- Enter
- First Prompt:
