This KB contain steps for Backup and Restore Application Gateway
Table of Content
- Backup Application Gateway
- Backup Important Directories and Items
-
- Stop App Gateway
- Restore Backup Files
- Start App Gateway System
1. Backup Application Gateway
a. Backup Important Directories and Items
Perform the following backups to ensure important data is preserved.
Backup /etc/cyolo Directory
tar -zcvf cyolo_backup.tar.gz /etc/cyolo |
Backup /etc/safous Directory
tar -zcvf safous_backup.tar.gz /etc/safous |
Backup /blobs Directory
tar -zcvf blobs_backup.tar.gz /blobs |
This completes the backup procedure for the App Gateway system. Ensure that the files have been successfully backed up before proceeding to the next step.
Note:
- If the purpose is only for backup, this is the final step—no further action is required.
- If there are more than 1 App Gateway, the process must be executed separately for each instance from the start.
- If you want make more than 1 backup file, you need to change the file name
2. Restore Application Gateway
Note:
- This step is required if the customer wants to restore the system.
- If you have multiple App Gateways, the step to shut down the container (a. Stop App Gateway) must be applied to all instances simultaneously before proceeding to the next step.
a. Stop App Gateway
WARNING
Stopping the Application Gateway will result in downtime
To ensure that the App Gateway system is properly stopped before restoring, execute the following commands:
Stop the App Gateway Services
docker-compose -f /etc/cyolo/config/docker-compose.yml down docker-compose -f /etc/safous/user-portal/docker-compose.yml down |
Verify That No Containers are Running
docker ps -a |
Before Stop App Gateway Services
After Stop Cyolo
After Stop Safous
Confirm Web Access Shutdown
To verify that the user portal has been successfully stopped, attempt to access your tenant's URL:
https://login.<tenant>.ztna.safous.com |
if the portal is unreachable, the shutdown was successful.
Note: Ensure that all containers from repo.safous.com
doesn't appear in the container list
b. Restore Backup Files:
Uncompress all backup files and place them in the intended directory path.
/etc/cyolo:
tar -zxvf <BACKUP_FILE_NAME>.tar.gz -C /etc/cyolo |
/etc/safous:
tar -zxvf <BACKUP_FILE_NAME>.tar.gz -C /etc/safous |
/blobs:
tar -zxvf <BACKUP_FILE_NAME>.tar.gz -C / |
c. Start App Gateway System
Run the following commands to start the App Gateway system, also check that App Gateway container is running properly:
docker-compose -f /etc/cyolo/config/docker-compose.yml up -d |
Verify Web Access:
Wait for up to 5 minutes, then check the web access to the user portal by opening your tenant URL
https://login.<tenant>.ztna.safous.com |
You should be able to access the user portal and log in normally.