Helm plugin which performs backup/restore of releases in a namespace to/from a file
Clone or download
Latest commit 5a2902e Dec 8, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Init commit Nov 1, 2018
Gopkg.lock upgrade plugin-utils version Dec 8, 2018
Gopkg.toml upgrade plugin-utils version Dec 8, 2018
LICENSE.txt update license Nov 30, 2018
Makefile remove quotation marks Nov 30, 2018
README.md update readme Nov 1, 2018
install-binary.sh update plugin installation Nov 30, 2018
main.go remove silence usage Dec 8, 2018
plugin.yaml update plugin version Dec 8, 2018

README.md

Helm Backup Plugin

This is a Helm plugin which performs backup/restore of releases in a namespace to/from a file

Usage

backup releases from namespace to file

$ helm backup [flags] NAMESPACE

restore releases from file to namespace

$ helm backup [flags] NAMESPACE --restore

Flags:

      --file string               file name to use (.tgz file). If not provided - will use <namespace>.tgz
  -l, --label string              label to select tiller resources by (default "OWNER=TILLER")
  -r, --restore                   restore instead of backup
      --tiller-namespace string   namespace of Tiller (default "kube-system") 

Install

$ helm plugin install https://github.com/maorfr/helm-backup

The above will fetch the latest binary release of helm backup and install it.

Developer (From Source) Install

If you would like to handle the build yourself, instead of fetching a binary, this is how recommend doing it.

First, set up your environment:

  • You need to have Go installed. Make sure to set $GOPATH
  • If you don't have Dep installed, this will install it into $GOPATH/bin for you.

Clone this repo into your $GOPATH. You can use go get -d github.com/maorfr/helm-backup for that.

$ cd $GOPATH/src/github.com/maorfr/helm-backup
$ make bootstrap build
$ SKIP_BIN_INSTALL=1 helm plugin install $GOPATH/src/github.com/maorfr/helm-backup

That last command will skip fetching the binary install and use the one you built.