Giter VIP home page Giter VIP logo

bizfly-backup's Introduction

bizfly-backup

BizFly Cloud backup service.

Building

$ go build
$ ./bizfly-backup
BizFly Cloud backup agent is a CLI application to interact with BizFly Cloud Backup Service.

Usage:
  bizfly-backup [flags]
  bizfly-backup [command]

Available Commands:
  agent         Run agent.
  backup        Perform backup tasks.
  cleanup-cache Remove old cache directories.
  help          Help about any command
  restore       Restore a backup.
  upgrade       Upgrade bizfly-backup to latest version.

Flags:
      --config string   config file (default is $HOME/.bizfly-backup.yaml)
      --debug           enable debug (default is false)
  -h, --help            help for bizfly-backup

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

Agent

Help

$ ./bizfly-backup agent --help
Run agent.

Usage:
  bizfly-backup agent [flags]

Flags:
      --addr string   listening address of server. (default "http://localhost:9000")
  -h, --help          help for agent

Global Flags:
      --config string   config file (default is $HOME/.bizfly-backup.yaml)
      --debug           enable debug (default is false)

Running

$ ./bizfly-backup agent --debug=true --config=./conf/agent.yaml
2020-06-08T09:14:26.552+0700	INFO	cmd/root.go:96	Using config file: ./agent.yaml
2020-06-08T09:14:26.559+0700	DEBUG	cmd/agent.go:50	Listening address: http://localhost:9000

Configuration Options

Key Default Value Description
machine_id None machine_id is provided when create machine.
access_key None access_key is provided when create machine.
secret_key None secret_key is provided when create machine.
api_url None api_url is provided when create machine.
limit_upload unlimited limit_upload is used to limit upload bandwidth.
limit_download unlimited limit_download is used to limit download bandwidth.
port 9000 port is used change the default port.
num_goroutine calculated Quantity goroutine run at the same time.
Default is caculated base on the number of logical CPUs usable by the current process.

Example

access_key: GMWR7FNOUZ8QAT98VEHX
api_url: https://backup.bizflycloud.vn
machine_id: d1bfa61a-b0a6-4e64-b9f7-61d68037693a
secret_key: ef09a0fc5f013f0cac10f5c97ad04040bd72b4cc5a8e49b55ca1b644ea8779ff

limit_upload: 20000
limit_download: 30000

port: 9001

num_goroutine: 3

bizfly-backup's People

Contributors

cuonglm avatar ducpx avatar greatbn avatar ngocvinhvu avatar quoccuong97 avatar toannd96 avatar trisduong avatar

Stargazers

 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.