Creating a Backup Target

Introduction

A Trilio Target is a Kubernetes resource that defines the backup repository location used to store the backup files. This location can be defined as an Network File System (NFS) or an Object Store such AWS, MinIO etc. In this section of the demo, we will attempt to create a Backup Target which will host all backup files for the vmimported namespace.

Virtual Machines

  1. Login to your {openshift_console_url}[OpenShift Console^] with user {user} and password {password}.

  2. On the left menu, click on Virtualization → VirtualMachines and on the Project drown down, select the project vmimported

    target vmimported vms

    There are 3 Virtual Machines that are displayed. These will be backed up and restored to another namespace.

  3. Our Target will be set up to store backed up files on a MinIO S3 location.

Create the S3 Credentials Secret for the Backup Target

In order for Trilio to upload the files to this location, it will require login credentials, created as a Kubernetes secret, in the namespace we are trying to backup:

  1. On the left menu, select Workloads → Secrets and ensure your Project is selected as vmimported.

  2. Click on the Create button and select Key/value secret

  3. For Secret name enter minio-s3-login

  4. For Key enter accessKey

  5. For Value enter minio

  6. Click on Add key/value

  7. For the second Key enter secretKey

  8. And for the Value enter {password}

  9. Click Create

Create the Backup Target

Now that you have the credentials to your target location, you can being creating the Backup Target.

  1. On the left menu click Trilio Backups → Targets and ensure your Project is selected as vmimported.

  2. Click the Create Target button. You will be presented with a Create Target form.

    target create target form
  3. For Namespace, select vmimported

  4. For Name, enter target-1

  5. Ignore the Threshold Capacity as this is not required for the demo.

  6. For Vendor details, select Object Store

  7. For Vendor, select MinIO

  8. For Secrets, select minio-s3-login which you just created.

  9. For Bucket Name, enter trilio-storage. This bucket has already been created for you on MinIO.

  10. Ignore Region

  11. For URL, enter http://minio.minio.svc.cluster.local:9000

  12. Click Submit

  13. Once the Create Target form is submitted, you will be redirected to the Targets landing page. once the status for target-1 shows Available, your target is successfully created.

    target target created
Target Creation Progress

To monitor the progress of creating your target, you can view the tvk-target-validation…​ pod logs in the trilio-system namespace.