ÿØÿà JFIF ÿÛ „ ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /etc/cron.daily/ |
#!/bin/sh # # This file is run on a daily basis to perform a backup of your # mailbox list which can be used to recreate mailboxes.db from backup. # Restore is done using ctl_mboxlist after uncompressing the file. BACKDIR="/var/lib/imap/backup" MBOXLIST="${BACKDIR}/mboxlist" ROTATE=6 # fallback to su if runuser not available if [ -x /sbin/runuser ]; then RUNUSER=runuser else RUNUSER=su fi # source custom configuration if [ -f /etc/sysconfig/cyrus-imapd ]; then . /etc/sysconfig/cyrus-imapd fi [ -x /usr/lib/cyrus-imapd/ctl_mboxlist ] || exit 0 [ -f /var/lib/imap/db/skipstamp ] || exit 0 # rotate mailbox lists seq $[ $ROTATE - 1 ] -1 1 | while read i; do [ -f ${MBOXLIST}.${i}.gz ] && mv -f ${MBOXLIST}.${i}.gz ${MBOXLIST}.$[ $i + 1 ].gz done [ -f ${MBOXLIST}.gz ] && mv -f ${MBOXLIST}.gz ${MBOXLIST}.1.gz # export mailboxes.db $RUNUSER - cyrus -s /bin/sh -c "umask 077 < /dev/null ; /usr/lib/cyrus-imapd/ctl_mboxlist -d | gzip > ${MBOXLIST}.gz" exit 0 # EOF