Restoring Webmin configuration backup from command line

It is possible to restore Virtualmin backup by running the

virtualmin restore-domain --source /root/backups/virtualmin.tar.gz --all-virtualmin

command in CLI. I wonder is there similar command for Webmin configuration backup file?

Status: 
Active

Comments

Unfortunately there isn't any command-line tool for Webmin backups.

Extracting the backup file in / works fine, but unfortunately even restarting webmin doesn't bring up some custom terms on interface as you have to really go to the respective modules configuration page (for example Module Titles) and save it and only then the custom names show up. I wonder how to do the whole thing purely in CLI without going to UI?

Just extracting the tar file won't necessarily copy everything into place - the restore would have to be done using the same code as when it's done via the UI.