Cannot restore .zstd backups

SYSTEM INFORMATION
Debian 12.15
Webmin 2.653
Virtualmin 8.1.0 GPL

When restoring backups I have noticed recently am unable to restore .zstd backups made from the same server (or others). I get this message:

I find I am unable to restore the file (and other .zstd backups) across several servers. I am able to open the file using WinRAR on my Windows workstation and extract everything needed to rebuild a WordPress file but that’s like walking insted of driving.

Anyone else run into this issue?

Charles

Hello,

Thanks for reporting this!

This is a bug in Virtualmin 8.1.0 that will be fixed in the next release.

In the meantime, you can apply the patch below to make it work:

webmin patch https://github.com/virtualmin/virtualmin-gpl/commit/6f2bd41

Did I do something wrong?

root@debian13server:~# webmin patch https://github.com/virtualmin/virtualmin-gpl/commit/6f2bd41
Patch failed: Hmm…patch unexpectedly ends in middle of line
I can’t seem to find a patch in there anywhere.
patch: **** Only garbage was found in the patch input.

root@debian13server:~#

No, it is not your fault. It’s my bad and a bug that occurs when applying the patch without the patch command installed.

The quick workaround is to run apt install patch and retry.

Ok, this time I got:

root@debian13server:~# apt install patch
patch is already the newest version (2.8-2).
patch set to manually installed.
Summary:
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
root@debian13server:~# webmin patch https://github.com/virtualmin/virtualmin-gpl/commit/6f2bd41
Patch applied successfully to:
  backups-lib.pl
root@debian13server:~#

Good. It means the patch was applied correctly, and your original issue should be resolved.