https://github.com/cha87de/rancher-dumper
https://github.com/cha87de/rancher-dumper
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cha87de/rancher-dumper
- Owner: cha87de
- License: gpl-3.0
- Created: 2018-04-18T09:18:03.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-18T09:27:12.000Z (about 8 years ago)
- Last Synced: 2025-03-21T22:16:26.562Z (about 1 year ago)
- Language: Shell
- Size: 14.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rancher Dumper
When using rancher for software defined infrastructure,
the deployment may be changed manually from time to time using
the rancher CLI or the web dashboard. To still have the recent
state as a backup, exporting the full setup to a version control
system may be useful.
This rancher dumper exports the rancher and docker compose files for
all stacks and optionally pushes them to a git repository.
Usage:
```
# source your rancher credentials
source /opt/rancher/creds.env
# export and sync with git repo
./gitsync path_to_git_repo
# export only
./stackdump path_to_output
```
## TODOs
- [ ] extend exports: certificates, etc.
- [ ] ship as container, to run rancher-dumper as started-once service in rancher