mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-07 09:07:03 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
7
roles/elasticsearch/templates/pre-backup.j2
Normal file
7
roles/elasticsearch/templates/pre-backup.j2
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
mkdir -p /home/lbkp/es
|
||||
mount -o bind,ro {{ es_backup_dir }} /home/lbkp/es
|
||||
curl -X PUT http://localhost:{{ es_port }}/_snapshot/lbkp/lbkp?wait_for_completion=true
|
Reference in New Issue
Block a user