Simple backup for Kibana saved objects: config, index patterns, dashboards, saved searches, etc.
Uses python3 and awesome python-requests library.
Usage
Backup/restore default namespace
kibana-backup.py backup [--kibana-url KIBANA_URL] [--user USER] [--password PASSWORD] > backup.ndjson
cat backup.ndjson | kibana-backup.py restore [--kibana-url KIBANA_URL] [--user USER] [--password PASSWORD]
Backup non-default namespace
kibana-backup.py backup [--kibana-url KIBANA_URL] [--user USER] [--password PASSWORD] --space-id=myspace --backup-file=myspace.ndjson
Backup/restore all namespaces
kibana-backup.py backup [--kibana-url KIBANA_URL] [--user USER] [--password PASSWORD] --all-spaces --backup-file-prefix=backup-
Result: backup-default.ndjson backup-myspace.ndjson backup-myspace2.ndjson
kibana-backup.py restore [--kibana-url KIBANA_URL] [--user USER] [--password PASSWORD] --all-spaces --backup-file-prefix=backup-
Restores backup-default.ndjson to space id=default, backup-myspace.ndjson to space id=myspace, ...
Installation
From pypi.org:
pip install kibana-backup-simple
Local installation:
git clone https://github.com/selivan/kibana-backup-simple.git
cd kibana-backup-simple
python setup.py install
Or just create a Docker image and use it:
docker build -t kibana-backup-simple .
docker run -it --rm -v "$PWD":/opt kibana-backup-simple [options]
Note: if you use options like --all-spaces and --backup-file, you should mount some local directory into the container.
Documentation
- https://www.elastic.co/guide/en/kibana/current/saved-objects-api-export.html
- https://www.elastic.co/guide/en/kibana/current/saved-objects-api-import.html
- https://www.elastic.co/guide/en/kibana/current/spaces-api-get-all.html
License
P.S. If this code is useful for you - don't forget to put a star on it's github repo.
Metadata
Release files for kibana-backup-simple 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kibana-backup-simple-1.3.0.tar.gz | 4.4 kB | Without provenance | Details for kibana-backup-simple-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kibana_backup_simple-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for kibana_backup_simple-1.3.0-py3-none-any.whl |
Total release size: 10.9 kB
Release files / kibana-backup-simple-1.3.0.tar.gz
| Download URL | kibana-backup-simple-1.3.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd0fdc5986bdb8f2862174ef75c969525a1e07d51aeebd1e4c7971242f64a205
|
|
BLAKE2b-256 checksum How to use checksums |
d49047a345c2a7f828d97fd4f9e6691a1ce6578fe64d9a9981f07e5998bc8c1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.14
|
Release files / kibana_backup_simple-1.3.0-py3-none-any.whl
| Download URL | kibana_backup_simple-1.3.0-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
501c9fda1254f0d78f822a3373775458193268825123ca6974ab22df8cadb533
|
|
BLAKE2b-256 checksum How to use checksums |
3c56dc058f600535fa70f22aa7c854dd9d7d8471a73418e908137f775b725ee2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.14
|
Security for kibana-backup-simple 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.