Topic: OpenBSD /var/vmail/backup/backup_mysql.sh
So this is on my slightly older OpenBSD ldap install, i
1.3.2 LDAPD edition.
I was noticing an error in my backup:
==> Backup completed successfully.
/var/vmail/backup/backup_mysql.sh: line 194: [: argument expected
==> Detailed log (/var/vmail/backup/mysql/2021/04/26/2021-04-26-03-30-01.log):
So I changed line 193 from
if [ X"${REMOVE_OLD_BACKUP}" == X'YES' -a -d ${REMOVED_BACKUP_DIR} ]; then
to
if [ X"${REMOVE_OLD_BACKUP}" == X'YES' -a -d "${REMOVED_BACKUP_DIR}" ]; then
And it cleared up the error.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.