Coder Social home page Coder Social logo

thedarktrumpet / go-get-collibra-backup Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 113 KB

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

License: GNU General Public License v3.0

Go 100.00%
golang go backup collibra

go-get-collibra-backup's Introduction

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

go-get-collibra-backup's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.