You can back up your IG Server database by running a script from the system console or an SSH terminal session. The script will back up data held in the database.
You need to consider where you want the backup to be placed. As the database has the potential to grow, you will need to ensure that suitable space is available. You can back up to:
You should never back up to an IG Server system partition, for example root, /var, /tmp. Unpredictable results might occur. |
You also need to decide on the best time to run the backup. The size of the database dictates how long the process will take, but note that key services, including Gateway processing requests and usage of the Administration UI, may be slow or unavailable while the backup is being performed. We recommend that you perform backups when there is low system activity.
The backup script places a copy of the database in the current working directory as a compressed gzip file. The IG Server administrator and your company policy dictate what happens to the data after it has been backed up. For example you could:
Consider using one of the many dedicated tools available for managing your backed up data. |
Your IG Server does not provide tools for automated backup. To provide automation to the process, consider creating a cron job, or use another tool to manage automation.
As an example, here's how you might set up a scheduled backup everyday at 2am:
Enter the following:
$ sudo crontab -e
Enter the following:
0 2 * * * cd <BACKUP-TARGET-LOCATION>;/opt/clearswift/igp/bin/igp-backup-database.sh
To enable an SSH session:
From the Home page, click System > Security > SSH Access.
SSH configuration options are displayed.
From the SSH client, connect to your IG Server.
Leaving SSH access enabled for extended periods might represent a security risk. You should consider disabling SSH when not using it. |
To start the backup, change directory to where the backup file is to be stored and type the following from the command line:
$ sudo su - # mkdir -p <BACKUP-TARGET-LOCATION> # cd <BACKUP-TARGET-LOCATION> # igp-backup-database.sh
where <BACKUP-TARGET-LOCATION>
is where you want the database backup to be stored.
The script creates the backup in the current directory in a file called:
database-backup-<YYYY>_<MM>_<DD>_pg_bck.gz
where <YYYY>_<MM>_<DD>
is the date of the backup.
© 1995–2019 Clearswift Ltd.