-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from NBISweden/dev/efficient
Make log dumping smarter
- Loading branch information
Showing
12 changed files
with
208 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
data | ||
datasecond | ||
main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,45 @@ | ||
## Elasticsearch backups | ||
# Elasticsearch backups | ||
|
||
## Create a key | ||
Enable the transit encryption engine and create a key. Give it a descriptive name. | ||
|
||
## Create some indices in ES | ||
```sh | ||
./main --action create --index index123 | ||
``` | ||
|
||
## Dumping encrypted index to S3 | ||
```sh | ||
./main dump | ||
./main --action dump --index index123-mon-jan-8-17-43-24 | ||
s3cmd ls -c s3conf s3://dumps | ||
s3cmd get -c s3conf s3://dumps/indexname | ||
``` | ||
|
||
## Loading index from S3 | ||
## Loading index from S3 to ES | ||
```sh | ||
./main load | ||
./main --action load --index index123-mon-jan-8-17-43-24 | ||
``` | ||
|
||
## Script configuration | ||
## Example script configuration | ||
```yaml | ||
s3: | ||
url: "https://localhost" | ||
port: 9000 | ||
accesskey: "myaccesskey" | ||
secretkey: "mysecretkey!0" | ||
secretkey: "mysecretkey" | ||
bucket: "dumps" | ||
cacert: "./certs/s3.pem" | ||
#chunksize: 32 | ||
cacert: "./certs/ca.pem" | ||
elastic: | ||
#addr: "http://localhost:9200" | ||
addr: "http://localhost:9201" | ||
## INSTANCE 1 | ||
addr: "http://localhost:9200" | ||
## INSTANCE 2 | ||
#addr: "http://localhost:9201" | ||
user: "elastic" | ||
password: "elastic" | ||
#index: "my-test-index" | ||
index: "my-test-index-mon-jan-6-11-26-58" | ||
vault: | ||
addr: "http://localhost:8282" | ||
token: "s.lepNY18TQPM1QRZR9kW1DAhS" | ||
token: "" | ||
transitpath: "transit" | ||
key: "transit" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.