Changing the location of automatic backups

Last Updated : May 30, 2024 |

About this task

Avaya Hybrid Cloud Gateway stores automatic backups in the /var/log/Avaya/backup/ directory. Modify the tomcat.start.sh file to change the automatic backup file location. When you change the default backup location, the earlier backup files location remains unchanged.

Note:

You cannot change the location through the Avaya Hybrid Cloud Gateway web administration portal.

Note:

This topic is not applicable if you upgrade Avaya Hybrid Cloud Gateway to version 1.0.5 or later. For guidance, contact Avaya Cloud Operations.

Before you begin

After the Avaya Hybrid Cloud Gateway upgrade, change the location of automatic backups back to the default location. Repeat this procedure to store automatic backups in another directory.

Procedure

  1. Log in to the Avaya Aura® Web Gateway CLI as an administrator using an SSH connection.
  2. To navigate to the directory that contains the tomcat.start.sh file, run the following command:

    change to service directory: cd /opt/Avaya/CallSignallingAgent/<version>/CAS/<version>/service.d/

  3. Open the tomcat.start.sh file in a text editor with sudo privileges.

    For example, edit tomcat start configuration script

    sudo vi ./tomcat.start.sh

  4. In the CATALINA_OPTS="$CATALINA_OPTS -Dcom.avaya.cas.autobackup.dir=<DIRECTORY_NAME>" string, replace the existing <DIRECTORY_NAME> entry with the path to the directory to store the automatic backups.

    For example, to store automatic backups in the /home/admin/automatic_backups/ directory, modify the string as follows:

    CATALINA_OPTS="$CATALINA_OPTS -Dcom.avaya.cas.autobackup.dir=/home/admin/automatic_backups/"

  5. Save the file.
  6. To restart Tomcat, run the following command:

    restart tomcat service: svc tomcat restart