Last active
December 29, 2015 14:29
-
-
Save nithril/7684090 to your computer and use it in GitHub Desktop.
Sauvegarde Elasticsearch
This file contains hidden or 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
#!/bin/bash | |
_now=$(date +"%Y_%m_%d_%H_%M"); | |
curl -X POST "http://localhost.fr:9200/_export?target=/usr/local/lilactu/save/${_now}.tar.gz" |
This file contains hidden or 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
/usr/bin/lftp ftp://login:pwd@host -e "mirror --delete --reverse /usr/local/lilactu/save / ; quit" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment