Backup via CLI Script

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:

  1. 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



  2. Run the command sudo su to get elevated privileges:
    # sudo su
  3. Change to the /opt/PrimeKey/support directory.

  4. Run the script system_backup.sh to create a backup of your system.

  5. Press Y to proceed and enter a password to protect the backup once prompted:



  6. 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/