Create a Backup Repository

Abstract

The CDC.IO Utility enables the creation of canonical (standard) backups across various systems. This makes version control easier during the development and operations phases.

This article describes how to set up a backup scheme using the GIT distributed version control system.

We start with the NCC distribution as our baseline. Then, we create a differential backup using the Retro1 (CYBIS Release 2) distribution.

Procedure

  1. Create a local repository in <backup_cluster_location>.

  2. Create .gitignore file in the <backup_cluster_location> repository's root.

    Important
    The .gitignore file prevents lesson binary pack data from being held in the repository.

    .gitignore
    /binary1
    /binary2
  3. Check-in / commit the .gitignore file in <backup_cluster_location>.

  4. Run cdc.io backup cdc.io c.backup -c “<ncc_source_cluster_location>” -b “<backup_cluster_location>”.

    • The first backup is automatically a “full” backup and will take a bit of time to complete. Be patient.

  5. Check-in repository at <backup_cluster_location>.

  6. Run cdc.io backup cdc.io c.backup -c “<retro1_source_cluster_location>” -b “<backup_cluster_location>”.

    • The “overlay” backup is automatically a differential backup and only changed files are transferred.

      An example of the differential run looks like this

  7. Create a new branch in the repository <backup_cluster_location> to which these changes will be committed.

  8. Check-in / Commit the current backup to the branch.

Success

You now have a complete list of all files which differ from the Nostalgic Computing Center (NCC) distribution!