Backup restore fails missing domain info /etc/ssh/sshd

I’m trying to migrate from a debian 8 virtualmin 7.2-1 install to a debian 11 install. I ran the backup but when trying to restore this is the output

SYSTEM INFORMATION
OS type and version Debian 11
Virtualmin version 7.7

what is the contents of /root/backups ?

the backups, created using the method in this guide
https://www.virtualmin.com/documentation/system/migrate/

So what are the contents of /root/backup ?

did you turn off sshd on old server?

the old server is entirely turned off

Maybe it needs to be turned on.

That seems to be corrupt information somewhere/somehow. It doesn’t make sense for a domain to be named etc/ssh/sshd.

My guess would be that a domain was half-created with that name (by mistake, I assume) and for whatever reason Virtualmin didn’t fully clean up, and then that bogus domain was backed up. That’s a wild guess. Other possibilities would be that the disk was failing or power was cut during the backup and data corruption occurred.

Instead of restoring all domains, try restoring all but that bogus domain.

How do I do that?

I can’t see a switch for that, maybe just try one domain at a time and see if you still get a errors.
virtualmin restore-domain --source file [–domain name] [–all-features]

I’ve never run into this problem, but if I were to, I would try moving the backup files for the one problematic site to another directory in /root created especially for the occasion (like /root/badbackup), and then proceeding with the restore. Either that restore them individually if there were only a handful.

Richard

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.