Skip to content

Instantly share code, notes, and snippets.

@nithril
Last active December 29, 2015 14:29
Show Gist options
  • Save nithril/7684090 to your computer and use it in GitHub Desktop.
Save nithril/7684090 to your computer and use it in GitHub Desktop.
Sauvegarde Elasticsearch
#!/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"
/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