mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 07:37:20 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
11
roles/zimbra/templates/post_backup.sh.j2
Normal file
11
roles/zimbra/templates/post_backup.sh.j2
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
echo 'Removing Zimbra database dumps'
|
||||
rm -f /home/lbkp/zimbra/{ldap*,mysql*}
|
||||
rm -rf /home/lbkp/zimbra/exports/
|
||||
|
||||
# Remove snapshot mount point
|
||||
echo 'Cleanup backup mount point and snapshot'
|
||||
/opt/zimbra/bin/zmbh --post --shutdown=ldap --verbose --mount=/home/lbkp/zimbra/mount
|
Reference in New Issue
Block a user