Giter Club home page Giter Club logo

go-backuper's Introduction

go-backuper

Go Docker Image CI

Manual

The tool for backup files and DB (postgres)
Below consider the example of config.

# path where storage backups
backup_storage_path: /mnt/data
# specifies the number of day for retention backup (0 - the backup will don't delete)
backup_retention_days: 0

# Name a zip file suffix. File will be look as <project_name>_19_03_2020_backup.zip
# project_name - from section backup_source_files_path. See below.
name_zip_file: backup.zip

# If you want to encrypt your backups set true
encrypt_backup: true
# Password is for encrypt your backups
encrypt_password: "1234"

# You time zone
time_zone: "Europe/Moscow"
# cron for database
cron_db: "0 1 * * *" # cron for backup of DB
# cron for files
cron_files: "0 2 * * *" # cron for backup of files

# project_name - name of project, dirs - directories of project must be separate comma whitout whitespace.
backup_source_files_path:
  projects:
    - - project_name: redmine
        dirs: "/opt/redmine"
      - project_name: testproject
        dirs: "/opt/testproject,/var/lib/testproject"

# Database for backup.
database:
  host: 127.0.0.1
  user: postgres
  password: 1234
  port: 5432
  options: "" # additional options e.g. "-v -j3" among flags must be one whitespace and between flag and value don't be whitespace
  dbnames:
    - demo

Command line

Usage of ./go-backuper:
  -c string
        config (default "./config.yaml")
  -d    Run as daemon
  -f string
        Name of a file is for decrypt
  -p string
        Password is for decrypt

If you need decrypt file run that command:

./go-backuper -f test.txt.enc -p 1234

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.