1. Support Center
  2. F.A.Q
  3. Application Gateway Question

Application Gateway Backup and Restore Guide

This KB contain steps for Backup and Restore Application Gateway

Table of Content

  1. Backup Application Gateway
    1. Backup Important Directories and Items
2.    Restore Application Gateway
    1. Stop App Gateway
    2. Restore Backup Files
    3. 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

Screenshot_15-1After Stop Cyoloimage (9)-1After Stop Safous

image (10)-1

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
docker-compose -f /etc/safous/user-portal/docker-compose.yml up -d

docker ps -a

image (8)-2Verify 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.