Skip to main content
Skip table of contents

Copying Backup Files to Other Systems

Using either the command line interface (CLI) or a Secure Copy Protocol (SCP) utility, copy the file to the local system. Copy the file directly from one instance to another if VPC allows it. In this example,  the file is downloaded locally and then SCP'd to the new instance.

Copy File to Local Workstation

To copy the file to the local workstation:

  1. Copy the file using the CLI:

    CODE
    # scp -i ~/Documents/C2\ Comp/PrimeKey/EC2\ Creds/c2-ssh/c2-ssh.pem ec2-user@ec2-34-229-187-81.compute-1.amazonaws.com:/home/ec2-user/ejbca_db-ip-172-16-0-128.ec2.internal-1509663778.tar.gz ~/Downloads/ejbca_db-ip-172-16-0-128.ec2.internal-1509663778.tar.gz



  2. Copy the file using a SCP utility (in this case Cyberduck):

    1. Specify details to connect to the instance, for example hostname, username, and SSH key:


    2. Connect to the instance and download the file to the local system:



    3. Wait for the download to complete.

Copy Backup File to Another Instance

  1. SCP the backup file to another instance using the following CLI command:

    CODE
    # scp -i ~/Documents/C2\ Comp/PrimeKey/EC2\ Creds/c2-ssh/c2-ssh.pem ~/Downloads/ejbca_db-ip-172-16-0-128.ec2.internal-1509663778.tar.gz ec2-user@ec2-52-23-217-245.compute-1.amazonaws.com:/home/ec2-user/



  2. Once the backup file is copied, SSH into the new host and verify that the file was copied correctly.


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.