Skip to content

kiakimov/etcd2-backup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

etcd2-backup

A simple backup utility for etcd v2

Build Status

Install

npm install --global etcd2-backup

Usage

  Usage: etcd2-backup [options] [command]


  Options:

    -V, --version                    output the version number
    -f, --file <file>                backup file
    -e, --etcd <etcd>                etcd url eg: https://0.0.0.0:4001
    -c, --concurrency <concurrency>  max parallel requests
    -h, --help                       output usage information


  Commands:

    restore   restore keys from backup file
    dump      dump keys to backup file

Restoring a backup file

# Node
etcd2-backup -e https://0.0.0.0:4001 -f /backup/backup.json restore

# Docker
docker run -ti -v /my_backup_dir:/backup evert0n/etcd2-backup -e https://0.0.0.0:4001 -f /backup/backup.json restore

Creating a backup file

# Node
etcd2-backup -e https://0.0.0.0:4001 -f /backup/backup.json dump

# Docker
docker run -ti -v /my_backup_dir:/backup evert0n/etcd2-backup -e https://0.0.0.0:4001 -f /backup/backup.json dump

About

etcd v2 backup cli

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 91.6%
  • Dockerfile 8.4%