A simple application, demo at this point, on how to pull a backup from Collibra on prem (say for Cohesity backup)

go-get-collibra-backup

Introduction

This repository is a very simple go application that's intended, at this point, more of a demonstration about how to use the Collibra API to pull a backup from the console. At this point, the project isn't more fully fledged (such as downloading all backups, cycling backups, or the like.)

Dependencies and Usage

This project doesn't have any dependencies outside core Go, from a package level. This project does require one on disk for the credentials. As this code is OOTB, that location is $HOME/.creds/dhc_collibra.json

The format of this json file is pretty simple, requiring 6 properties to work properly:

{
	"dgc": "https://console-YOUR-ORG.collibra.com",
	"UserName": "ADMINUSER",
	"Password": "ADMINPASS",
	"encryption-key": "ENCRYPTION-KEY-FOR-BACKUP",
	"backup-dir": "/path/to/on/disk/location/",
	"backup-format": "SEE_BELOW"
}

Backup-Format

This script relies on the idea of daily, automated, backups on your instance, and will need to be changed for your environment.

To figure this out, go into your console (dgc link in the JSON), and:

  1. Click on "Backups" - Top Bar
  2. Click on "Backups" - Left Bar
  3. Look at the pattern, like in the screenshot.

Collibra Console

The important part is that for the portion that indicates a date, that you use the placeholder of <DATE>. For example, lets say you have the following backup item listed:

Backup_Schedule_catownersunited_2021-12-10_00:00:00

Your pattern for the backup would then become:

Backup_Schedule_catownersunited_<DATE>_00:00:00

Owner
David Thole
Enterprise Data Architect at UFG, adjunct instructor at University of Iowa College of Business. Independent technology consultant.
David Thole
Similar Resources

A GitHub CLI extension that provides summary pull request metrics.

gh-metrics A gh extension that provides summary pull request metrics. Usage Metric definitions Influences Usage To install the extension use: $ gh ext

Dec 29, 2022

GoKubernetes - Demo application for Kubernetes Up and Running

GoKubernetes - Demo application for Kubernetes Up and Running

Demo application for "Kubernetes Up and Running" Running kubectl run --restart=N

Jan 22, 2022

Simple SFTP backup tool for files.

BakTP Simple SFTP backup tool for files. config.example.json Contains an example how to backup a database. This application can be added to crontab -e

Dec 30, 2021

WaffleSyrup - Simple backup solution written by Go.

WaffleSyrup Simple backup solution written by Go. Usage WaffleSyrup runs in the current working directory. It will create ./tmp directory to save tarb

Apr 22, 2022

A simple program to automatically backup a database using git. Err handling by Sentry, Reporting by Betteruptime. Made with 🩸 , 😓 & 😭

backup What is this? A Simple program to automatically backup a database using git. Err handling by Sentry, Uses heartbeats by Betteruptime Made with

Nov 4, 2022

Simple backup tool for PostgreSQL

pg_back dumps databases from PostgreSQL Description pg_back is a dump tool for PostgreSQL. The goal is to dump all or some databases with globals at o

Dec 25, 2022

A super simple demo to document my journey to reasonably sized docker containers.

hello-docker A super simple demo to document my journey to reasonably sized docker containers. Task at Hand Build a docker container as small as possi

Nov 30, 2021

🛅 Backup your Kubernetes Stateful Applications

Stash Stash by AppsCode is a cloud-native data backup and recovery solution for Kubernetes workloads. If you are running production workloads in Kuber

Jan 7, 2023

Kubegres is a Kubernetes operator allowing to create a cluster of PostgreSql instances and manage databases replication, failover and backup.

Kubegres is a Kubernetes operator allowing to deploy a cluster of PostgreSql pods with data replication enabled out-of-the box. It brings simplicity w

Dec 30, 2022
Litestream-read-replica-demo - A demo application for running live read replication on fly.io with Litestream

Litestream Read Replica Demo A demo application for running live read replicatio

Oct 18, 2022
Lightweight, single-binary Backup Repository client. Part of E2E Backup Architecture designed by RiotKit

Backup Maker Tiny backup client packed in a single binary. Interacts with a Backup Repository server to store files, uses GPG to secure your backups e

Apr 4, 2022
False-sharing-demo - Demo for performance effects of CPU cache false-sharing

Example of CPU cache false-sharing in Go. A simple example where 2 integer varia

Aug 28, 2022
Github-backup application

Github-backup application This application clone your github repository with all commits, branch, tags etc. to your local disk Dependencies This App u

Dec 26, 2022
A Kubernetes Mutating Webhook to automatically re-point pod images to mirrors

kubernetes-mimic Kubernetes Mimic is a Mutating Webhook that will watch for pod creation and update events in a Kubernetes cluster and automatically a

Nov 22, 2022
pr-bullet is a tool for copying pull request to multiple repositories.

pr-bullet pr-bullet is a tool for copying pull request to multiple repositories. Usage First, create original pull request ( ex. https://github.com/k1

Oct 5, 2022
Stacked Pull Requests on GitHub

spr : Stacked Pull Requests Workflow on GitHub What are Stacked Diffs / Pull Requests? Long explanation: https://jg.gg/2018/09/29/stacked-diffs-versus

Jan 2, 2023
An action that comments PipeCD's PlanPreview result on GitHub pull request.
An action that comments PipeCD's PlanPreview result on GitHub pull request.

actions-plan-preview An action that comments PipeCD's PlanPreview result on GitHub pull request. This action can be used for all application kinds: Ku

Apr 6, 2022
GitHub Action: Compose multiple (conditional) checks into a single check based on file paths in a pull request
GitHub Action: Compose multiple (conditional) checks into a single check based on file paths in a pull request

GitHub Action: Composite Example Usage --- name: All Checks on: pull_request: branches: - main jobs: meta: runs-on: - ubuntu-20.

Dec 29, 2022
Small tool to pull/push several projects in one go

gitTool Small tool to push and pull several projects in one go. Written in Go 1.17 by Roy Dybing Contact: location name/handle github: rDybing linked

Dec 28, 2021