Hi there,
i am running mailcow-dockerized an a debian 13 server:
Yesterday i updated to mailcow 2025-12, but now i start the backup running:
MAILCOW_BACKUP_LOCATION=/opt/mailcow-backup/ /opt/mailcow-dockerized/helper-scripts/backup_and_restore.sh backup all
But some of the backup files are size 0:
[root@mail mailcow-backup]# ll mailcow-2025-12-10-11-27-46/
total 20052
-rw-r–r– 1 root root 0 Dec 10 11:27 backup_crypt.tar.zst
-rw-r–r– 1 root root 20519849 Dec 10 11:27 backup_mariadb.tar.zst
-rw-r–r– 1 root root 0 Dec 10 11:27 backup_postfix.tar.zst
-rw-r–r– 1 root root 0 Dec 10 11:27 backup_redis.tar.zst
-rw-r–r– 1 root root 0 Dec 10 11:27 backup_rspamd.tar.zst
-rw-r–r– 1 root root 0 Dec 10 11:27 backup_vmail.tar.zst
-rw——- 1 root root 10607 Dec 10 11:27 mailcow.conf
While running the backup job i see these error messages:
Using 1 Thread(s) for this run.
Notice: You can set the Thread count with the THREADS Variable before you run this script.
Using /opt/mailcow-backup as backup/restore location.
Found project name mailcowdockerized
/vmail/
/vmail/mailcow.local/
/vmail/shared-mailboxes.db
/vmail/sieve/
/vmail/sieve/global_sieve_before.svbin
/vmail/sieve/global_sieve_after.svbin
/vmail/sieve/webmaster@mydomain.sieve
/vmail/sieve/global_sieve_after.sieve
/bin/sh: 1: zstd: not found
/vmail/sieve/global_sieve_before.sieve
/vmail/sieve/webmaster@mydomain.svbin
/vmail/mydomain/
/vmail/mydomain/mail/
/vmail/mydomain/mail/.dovecot.lda-dupes
/bin/tar: /backup/backup_vmail.tar.zst: Cannot write: Broken pipe
/bin/tar: Child returned status 127
/bin/tar: Error is not recoverable: exiting now
/crypt/
/crypt/ecpubkey.pem
/crypt/ecprivkey.pem
/bin/sh: 1: zstd: not found
/bin/tar: Child returned status 127
/bin/tar: Error is not recoverable: exiting now
OK
/redis/
/redis/dump.rdb
/bin/sh: 1: zstd: not found
/bin/tar: /backup/backup_redis.tar.zst: Cannot write: Broken pipe
/bin/tar: Child returned status 127
/bin/tar: Error is not recoverable: exiting now
/rspamd/
/rspamd/b669b0275c5d0df26a3926bdfa380373aacb86835537648fe1cdd7f20f0fa49e.hs
/rspamd/b9999708a94656035accbe83e4152a009dd7c344f0e042f1f164b5139ab931a4.hsmp.unser
/rspamd/b66d28e19182acc9bf01cdb8ab8b590d4b9bb209d2b0ecd21a3f2f34f9551dca.hsmp
/bin/sh: 1: zstd: not found
/bin/tar: /backup/backup_rspamd.tar.zst: Wrote only 4096 of 10240 bytes
/bin/tar: Child returned status 127
/bin/tar: Error is not recoverable: exiting now
/postfix/
/postfix/corrupt/
/postfix/lib/
/postfix/public/
/postfix/public/pickup
/postfix/public/qmgr
/postfix/public/watchdog_qmgr
/postfix/active/
/postfix/trace/
/postfix/pid/
/postfix/pid/inet.127.0.0.1:10027
/postfix/pid/unix.watchdog_discard
/postfix/pid/unix.relay
/postfix/pid/unix.trace
/postfix/pid/unix.smtp_enforced_tls
/postfix/pid/unix.watchdog_cleanup
/postfix/pid/inet.588
/postfix/pid/unix.dnsblog
/postfix/pid/unix.showq
/postfix/pid/unix.lmtp
/postfix/pid/unix.defer
/postfix/pid/unix.smtp_via_transport_maps
/postfix/pid/inet.590
/postfix/pid/unix.bounce
/postfix/pid/inet.submission
/postfix/pid/inet.589
/postfix/pid/unix.cleanup
/postfix/pid/inet.smtps
/postfix/pid/unix.local
/postfix/pid/unix.smtp
/postfix/pid/unix.retry
/postfix/pid/unix.flush
/postfix/pid/pass.smtpd
/postfix/pid/unix.smtp_sender_cleanup
/postfix/pid/master.pid
/postfix/pid/inet.127.0.0.1:10028
/postfix/deferred/
/postfix/deferred/9/
/postfix/deferred/5/
/postfix/deferred/1/
/postfix/deferred/0/
/postfix/deferred/2/
/postfix/deferred/6/
/postfix/deferred/B/
/postfix/deferred/C/
/postfix/deferred/8/
/bin/sh: 1: zstd: not found
/postfix/deferred/3/
/postfix/deferred/E/
/postfix/deferred/7/
/postfix/deferred/D/
/postfix/deferred/F/
/postfix/deferred/A/
/postfix/deferred/4/
/postfix/etc/
/postfix/private/
/postfix/bounce/
/postfix/flush/
/postfix/hold/
/postfix/saved/
/bin/tar: /backup/backup_postfix.tar.zst: Cannot write: Broken pipe
/bin/tar: Child returned status 127
/bin/tar: Error is not recoverable: exiting now
Using SQL image mariadb:10.11, starting…
Seems, that zstd is missing, but zstd is installed on my host:
[root@mail mailcow-backup]# dpkg -l | grep zstd
ii libzstd1:amd64 1.5.7+dfsg-1 amd64 fast lossless compression algorithm
ii zstd 1.5.7+dfsg-1 amd64 fast lossless compression algorithm – CLI tool
[root@mail mailcow-backup]# which zstd
/usr/bin/zstd
When i ran the backup previosly to 2025-12, i get the complete backup:
[root@mail mailcow-backup]# ll mailcow-2025-12-09-01-00-02/
total 3433508
-rw-r–r– 1 root root 555 Dec 9 01:01 backup_crypt.tar.gz
-rw-r–r– 1 root root 30728787 Dec 9 01:02 backup_mariadb.tar.gz
-rw-r–r– 1 root root 1769 Dec 9 01:01 backup_postfix.tar.gz
-rw-r–r– 1 root root 3308089 Dec 9 01:01 backup_redis.tar.gz
-rw-r–r– 1 root root 26427211 Dec 9 01:01 backup_rspamd.tar.gz
-rw-r–r– 1 root root 3455415330 Dec 9 01:01 backup_vmail.tar.gz
-rw——- 1 root root 10607 Dec 9 01:00 mailcow.conf
Any hints???
Andreas
There is no backup container running, ist that okay? Will it be startd only for the backup procedure?
[unknown] There is no backup container running, ist that okay? Will it be startd only for the backup procedure?
Okay, i found out that this one ist just temporarily running ..