Copying Backup Files to Other Systems
Using either the command line interface (CLI) or a Secure Copy Protocol (SCP) utility, copy the file to your local system. You can copy the file directly from one instance to another if your Network Security Group allows it. In this example, we will bring the file down locally and then SCP it to the new instance.
Copy File to Local Workstation
- Using the CLI:CODE
# scp azure-user@40.118.253.3:/home/azure-user/ejbca_db-40.118.253.3-1556223266.tar.gz ~/Downloads/ejbca_db-40.118.253.3-1556223266.tar.gz
- Using a SCP utility (in this case Cyberduck):
- Specify details to connect to your instance, for example hostname, username, and SSH key:
- Connect to the instance and download the file to the local system:
- Wait for the download to complete.
- Specify details to connect to your instance, for example hostname, username, and SSH key:
Copy Backup File to Another Instance
- SCP the backup file to another instance using the following CLI command (in this case the new server was provisioned with the user "ejbca" and a password instead of SSH key): CODE
# scp ~/Downloads/ejbca_db-40.118.253.3-1556223266.tar.gz ejbca@52.246.249.239:/home/ejbca/ejbca_db-40.118.253.3-1556223266.tar.gz
- Once the backup file is copied, SSH into the new host and verify that the file was copied correctly.