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