Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maorfr/helm-backup
Helm plugin which performs backup/restore of releases in a namespace to/from a file
https://github.com/maorfr/helm-backup
backup disaster-recovery golang helm helm-plugin kubernetes restore
Last synced: about 2 months ago
JSON representation
Helm plugin which performs backup/restore of releases in a namespace to/from a file
- Host: GitHub
- URL: https://github.com/maorfr/helm-backup
- Owner: maorfr
- License: other
- Created: 2018-10-31T11:04:39.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-04T17:55:09.000Z (over 3 years ago)
- Last Synced: 2024-07-08T16:39:57.722Z (3 months ago)
- Topics: backup, disaster-recovery, golang, helm, helm-plugin, kubernetes, restore
- Language: Go
- Size: 22.5 KB
- Stars: 83
- Watchers: 6
- Forks: 18
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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 .tgz
-h, --help help for backup
-l, --label string label to select tiller resources by (default "OWNER=TILLER")
-r, --restore restore instead of backup
-t, --tiller-ns 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](http://golang.org) installed. Make sure to set `$GOPATH`
- If you don't have [Dep](https://github.com/golang/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
$ HELM_PUSH_PLUGIN_NO_INSTALL_HOOK=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.