diff --git a/roles/zimbra/templates/pre_backup.sh.j2 b/roles/zimbra/templates/pre_backup.sh.j2 index 603be3f..205e47c 100644 --- a/roles/zimbra/templates/pre_backup.sh.j2 +++ b/roles/zimbra/templates/pre_backup.sh.j2 @@ -9,10 +9,10 @@ zmsetvars # Dump ldap data /opt/zimbra/common/sbin/slapcat \ -F /opt/zimbra/data/ldap/config \ - -n 0 | lz4 -c > /home/lbkp/zimbra/ldap-config.ldif.lz4 + -n 0 | zstd -c > /home/lbkp/zimbra/ldap-config.ldif.zst /opt/zimbra/common/sbin/slapcat \ -F /opt/zimbra/data/ldap/config \ - -b "" | lz4 -c > /home/lbkp/zimbra/ldap.ldif.lz4 + -b "" | zstd -c > /home/lbkp/zimbra/ldap.ldif.zst {% endif %} {% if 'mailbox' in zcs_enabled_components %} @@ -23,7 +23,7 @@ zmsetvars --socket=$mysql_socket \ --all-databases \ --single-transaction \ - --flush-logs | lz4 -c > /home/lbkp/zimbra/mysql.sql.lz4 + --flush-logs | zstd -c > /home/lbkp/zimbra/mysql.sql.zst # Export calendars, tasks and address books to ics and vcf files OLDIFS=$IFS