parent
4a464d9013
commit
adcc06ae33
2 changed files with 4 additions and 5 deletions
@ -1,9 +1,5 @@ |
|||||||
#!/bin/bash -e |
#!/bin/bash -e |
||||||
|
|
||||||
{% if es_backup_dir != '' and es_backup_dir != '/' %} |
curl -X DELETE http://localhost:{{ es_port }}/_snapshot/lbkp/lbkp |
||||||
rm -rf {{ es_backup_dir }}/* |
|
||||||
{% else %} |
|
||||||
# Can't delete elasticsearch dumps, set es_backup_dir to a non empty path |
|
||||||
{% endif %} |
|
||||||
umount /home/lbkp/es |
umount /home/lbkp/es |
||||||
fstrim -a -v |
fstrim -a -v |
||||||
|
Loading…
Reference in new issue