To backup an instance of SignServer Cloud, you can either use the CLI script included on the instance or create a snapshot in the AWS Console. This section describes how to backup via script. For information on using the AWS Console with snapshots, see Backup using AWS Snapshot.
Backup via Script
To backup the instance using the script included on the instance:
Using the SSH key that you selected when procuring the instance, SSH into the SignServer Cloud instance using the username ec2-user:
# ssh –i ssh-key.pem ec2-user@elastic-ip.compute-1.amazonaws.com
CODE
- Run the command
sudo su
to get elevated privileges:
- Change to the
/opt/PrimeKey/support
directory. - Run the script
system_backup.sh
to create a backup of your system. - Press Y to proceed and enter a password to protect the backup once prompted:
Make a note of the name of the backup file created. Copy the backup file to a directory that is accessible by the ec2-user, for example /home/ec2-user/
.
In this case, the file named:
"/opt/PrimeKey/support/backup_files/signserver_db-ec2-54-162-206-73.compute-1.amazonaws.com-1532645892.tar.gz"
is copied to /home/ec2-user/
:
# cp /opt/PrimeKey/support/backup_files/signserver_db-ec2-54-162-206-73.compute-1.amazonaws.com-1532645892.tar.gz /home/ec2-user/
CODE
It is recommended to copy this backup to another system, either locally from your administration workstation, or in another AWS data center. For more information on how to copy the file from the SignServer Cloud instance, see the Copying Backup Files to Other Systems section.
NOTE For instructions on how to automate the backup of the system in order not to prompt for passwords, see the Optional - Automating the Backup Script section.