Backing up your organization's critical data is an important part of any infrastructure maintenance plan. You can use Oracle Cloud Infrastructure as an off-premises backup location.
The OCI Terraform Provider is now available for automatic download through the Terraform Provider Registry. For more information on how to get started view the documentation and setup guide.
Now, you'll want a local copy of this repo. You can make that with the commands:
git clone https://github.com/oracle-quickstart/oci-arch-cloud-backup.git
cd oci-arch-cloud-backup
ls
First off, you'll need to do some pre-deploy setup. That's all detailed here.
Secondly, create a terraform.tfvars
file and populate with the following information:
# Authentication
tenancy_ocid = "<tenancy_ocid>"
user_ocid = "<user_ocid>"
fingerprint = "<finger_print>"
private_key_path = "<pem_private_key_path>"
# SSH Keys
ssh_public_key = "<public_ssh_key_path>"
# Region
region = "<oci_region>"
# Compartment
compartment_ocid = "<compartment_ocid>"
For your convenience, there isa template file included with the necessary variables.
Deploy:
terraform init
terraform plan
terraform apply
When you no longer need the deployment, you can run this command to destroy it:
terraform destroy
Resource manager is a tool provide by Oracle CLoud Infrastructure that makes it easier to deploy and manage terraform automation.
The resource-manager directory has a zip file ready to be used with Resource Manager or as starting point for your need.