Skip to content

Instantly share code, notes, and snippets.

@itayw
Last active July 12, 2016 09:48
Show Gist options
  • Save itayw/8e41b48d51efdb81571e0a7426089aa3 to your computer and use it in GitHub Desktop.
Save itayw/8e41b48d51efdb81571e0a7426089aa3 to your computer and use it in GitHub Desktop.
kibana backup by cron
* * * * * echo "Hello from Echo" >> /var/log/cron.log 2>&1
0 20 * * * elasticdump --input http://elastic:9200/.kibana --output /backup/kibana/kibana-`date +%Y-%m-%H\ %k:%M:%S`.json
cron:
image: registry:5000/joola/echo-toolbox:dev
links:
- elastic:elastic
volumes:
- /opt/joola/echo/cron/crontab:/etc/crontab
- /opt/joola/echo/backup:/backup
restart: always
privileged: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment