s3-backup

command module
v0.0.0-...-fad4fbf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2021 License: MIT Imports: 4 Imported by: 0

README

s3-backup

backup/restore a remote s3 store to/from local filesystem

Example

./s3-backup backup -f users.json -p ~/tmp/s3backup/
./s3-backup restore -f users.json -p ~/tmp/s3backup/

Usage

USAGE:
   s3-backup backup [command options] [arguments...]

OPTIONS:
   -l value  Optional. Specify listen address for prometheus /metrics. (default: ":2112") [$LISTEN_ADDRESS]
   -f value  Required. Specify filename. [$FILENAME]
   -p value  Required. Specify backuppath. [$BACKUPPATH]
   -c value  Optional. Specify number of concurrent backup runners. (default: 10) [$CONCURRENCY]
   -i value      Optional. Specify time between backups in minutes. (default: 60) [$INTERVAL]
   --key value   Optional. Specify key for TLS. [$KEY]
   --cert value  Optional. Specify cart for TLS. [$CERT]
   --help, -h    show help (default: false)

config file

the config file is a json file with following format:

{
  "users": [
    {
      "displayname": "user1",
      "accesskey": "acceskey1",
      "endpoint": "s3.example.com",
      "secretkey": "secretkey1"
    },
    {
      "displayname": "user2",
      "accesskey": "accesskey2",
      "endpoint": "s3.example.com",
      "secretkey": "secretkey2"
    }
  ]
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL