| SYSTEM INFORMATION | |
|---|---|
| OS type and version | Ubuntu 22.04 LTS (64-bit) |
| Webmin version | Webmin 2.021 |
| Virtualmin version | Virtualmin GPL 7.20 |
| Webserver version | Apache 2.4.57 |
| Related packages | PHP 8.2, MariaDB 10.6, Perl 5.34, BIND 9.18, Postfix 3.6, ProFTPD 1.3.8 |
Hello Virtualmin Community,
I am currently facing a persistent issue with my website hosted on a Virtualmin-managed server, and I am looking for advice from experienced users who may have encountered a similar situation. The core problem is that my scheduled Virtualmin backups appear to complete successfully, but when I attempt to restore the website from those backups, some important website files are missing or not restored correctly. The backup process does not show any obvious errors, and the generated backup archives are created successfully, but the restored website does not fully match the original website structure. This has become a serious concern because I rely on Virtualmin backups as a recovery solution, and an incomplete restore could cause unexpected downtime or data loss if I need to recover from a server failure.
The issue mainly occurs when restoring a virtual server that contains my website files, databases, and configuration settings. After initiating a restore operation, Virtualmin completes the process and reports that the restoration was successful. However, when I check the restored website, certain directories, uploaded media files, or application-related files are missing even though they existed in the original installation before the backup was created. The website loads partially, but some sections fail because required files are not present. What makes this confusing is that the original backup archive appears to contain data, and there are no clear warnings indicating that specific files were skipped during the backup or restore process.
I have already checked the backup configuration settings inside Virtualmin and confirmed that the virtual server backup includes website files, databases, and relevant configuration data. The backup destination has enough available storage space, and the scheduled backup jobs complete without reporting failures. I have also tested creating manual backups instead of scheduled backups, but the same behaviour occurs during restoration. This suggests that the issue is not related to the scheduling system itself but may be related to how Virtualmin packages and restores certain website data. I would like to understand whether there are specific permissions, ownership settings, excluded directories, or restore options that could cause files to be skipped.
Another detail that may be important is that the website contains a mixture of static files, uploaded user content, and application-generated data. Some directories are owned by different users or services, and I am wondering whether permission handling during the backup or restore process could be responsible for the missing files. After restoration, some ownership values appear different from the original server state, and certain application directories do not behave correctly until permissions are manually adjusted. However, I have not been able to identify a clear pattern explaining which files are affected and why some directories restore correctly while others do not.
I have reviewed the Virtualmin logs and backup output, but I have not found a clear error message that explains the missing files. The restore process appears to finish normally, which makes troubleshooting difficult because there is no obvious failure point. I would like to know if there are recommended debugging methods for checking backup integrity, verifying that all required files are included before restoration, or identifying whether specific packages or configurations could interfere with the backup and restore workflow. I am also interested in understanding whether there are best practices for configuring Virtualmin backups for websites with a large number of files and mixed ownership permissions.
I would appreciate guidance from the Virtualmin community on how to properly diagnose and resolve this backup restoration issue. Specifically, I would like advice on checking whether files are being excluded during backup creation, verifying archive contents before restoration, correcting ownership and permission handling, and ensuring complete recovery of a virtual server. My goal is to have a reliable backup and restore process where my website files, databases, and configurations are restored exactly as they existed before without missing data or manual repair work. Any suggestions, troubleshooting steps, or configuration recommendations would be greatly appreciated. Very sorry for the long post!


