You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/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 %}
|
|
|
|
umount /home/lbkp/es
|
|
|
|
fstrim -a -v
|