Restore Virtual Servers failed

SYSTEM INFORMATION
OS type and version AlmaLinux 9.4
Webmin version 2.111
Usermin version 2.010
Virtualmin version 7.10.0
Theme version 21.10
Package updates 3 package updates are available, of which 3 are security updates

Checking contents of the backup …
… found 1 virtual servers

Starting restore of 1 domains from local file /tmp/.webmin …

Extracting backup archive files …
… extraction of /tmp/.webmin/53277_388997_2_restore.cgi failed :

cat: /tmp/.webmin/53277_388997_2_restore.cgi: Is a directory /bin/tar: This does not look like a tar archive /bin/tar: Exiting with failure status due to previous errors

… failed! See the progress output above for the reason why.

From the looks of it, the archive you have uploaded is tripping up the restore process. Let’s try and understand why.

First: what’s the filename.of the backup like? Have you (or your archiving / versioning system) changed the filename? Does the filename contain any special characters?

Can you open the backup file and take a look inside the archive? Does not look similar to a known good backup that you have?

Filename won’t effect whether it’s a tar archive or not.

I think the file is corrupt or not a backup file.

You could try file <name-of-backup-file> to see what kind of file it actually looks like.

it’s normal name
and it’s automatically generate it (virtualmin-backup.tar) or (domainname.com.tar)

i create a Backup Virtual Servers with all my sites with default settings


Backup Virtual Servers

Testing backup destination local file /tmp/.webmin/root:test.com.tar.gz …
… done

Creating backup for virtual server test.com

Copying virtual server configuration …
… done
Backing up Cron jobs …
… none defined.
Creating TAR file of home directory …
… done
Copying records in DNS domain …
… done
Saving mail aliases …
… done
Saving mail and FTP users …
… done
Backing up mail and FTP user Cron jobs …
… none to backup
Copying Apache virtual host configuration …
… done
Copying Apache log files …
… done
Copying Webalizer configuration files …
… done
Copying SSL Apache virtual host configuration and certificate …
… done
Copying Logrotate configuration …
… done
Dumping MariaDB database test …
… done
Dumping MariaDB database test_wordpress …
… done
Copying Procmail and SpamAssassin configuration files …
… done
Backing up Webmin ACL files …
… done
Backing up AWStats configuration file …
… done

… completed in 15 seconds

Creating final backup archive …
… done

1 servers backed up successfully, 0 had errors.