Git Product home page Git Product logo

lifeboat's Introduction

Lifeboat

Lifeboat is a backup tool provided by cluetec GmbH. Lifeboat enables the user to create backups for a range of different source systems (e.g. PostgreSQL, MongoDB, HashiCorp Vault) and storing the backup also in different destination storage systems (e.g. S3 Buckets, Azure Blob, S/FTP, local filesystem).

โœ… Supported Systems

Source systems:

  • Local filesystem
  • PostgreSQL (Not implemented yet)
  • MongoDB (Not implemented yet)
  • HashiCorp Vault (Not implemented yet)

Destination storage systems:

  • Local filesystem
  • S3 Bucket (Not implemented yet)
  • Azure Storage Account (Not implemented yet)
  • S/FTP (Not implemented yet)

๐Ÿ”ฅ Motivation

cluetec has been offering software development services for several years now. We have been contracted with the implementation and initial operation of the software for a large number of projects. Here we repeatedly encountered the backup issue for various database systems. To avoid having to copy and adapt shell scripts back and forth every time, we thought about turning these shell scripts into an application that could be used to back up various database systems with as little adaptation effort as possible.

๐Ÿ’ป Installation

At the moment we don't provide any installation methods. As we just started the project, we will start with providing the compiled binaries within the GitHub Releases. Later container images as also helm charts will follow.

โš™๏ธ Usage

Lifeboat is a CLI tool which makes it possible to use it in various kind of environments like on a local machine, in a Unix cronjob, in Kubernetes, in a VM, wherever the user wants. As the tool needs a quite complex configuration it's possible to provide a config file. In addition, it's also possible to provide all configuration via environment variables.

$ lb
Lifeboat is a general purpose backup tool which supports backups for arbitrary sources and destinations.

Usage:
  lb [command]

Available Commands:
  backup      Execute the backup.
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command

Flags:
  -h, --help   help for lb

Use "lb [command] --help" for more information about a command.

Configuration

The configuration is divided in three different parts:

  1. General configs
  2. Source system configs
  3. Destination storage configs

If you want to set a config via an environment variable, just concatenate the yaml structure (in uppercase characters) with underscores (_). For example like this: SOURCE_FILESYSTEM_PATH

To get an idea how the configuration can look like, have a look at the config.yaml.

General configuration

Yaml Config Default Required Description
logLevel info ๐Ÿ‘Ž Defines the log level of the application. Possible value are: debug, info, warn, error

Source system configuration

All configurations for the source system needs to be placed under the source object in the configuration. Furthermore, we need to define, which source system we want to use. This will be done by setting the type field, like it's done in the following example. The possible values can be found in the respective subsections for each source system.

source:
  type: filesystem
Filesystem

The following configs need to be place under the following yaml structure:

source:
  type: filesystem
  filesystem:
    ...
Yaml Config Default Required Description
path ๐Ÿ‘ Defines the path in the local filesystem (relative or absolute) to a file or folder that should be backed up.

Destination storage configuration

All configurations for the destination storage systems needs to be placed under the destination object in the configuration. Furthermore, we need to define, which destination storage system we want to use. This will be done by setting the type field, like it's done in the following example. The possible values can be found in the respective subsections for each destination storage system.

destination:
  type: filesystem
Filesystem

The following configs need to be place under the following yaml structure:

destination:
  type: filesystem
  filesystem:
    ...
Yaml Config Default Required Description
path ๐Ÿ‘ Defines the path in the local filesystem (relative or absolute) where to store the file.

๐Ÿค Contribution

Everyone is more than welcome to contribute to this project! That's what open source is all about!

To have some contribution guidance, please have a look at CONTRIBUTING.md.

License

The project is licensed under the "Apache-2.0" license.

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.