Import / Export of server templates between 2 physical servers - is it safe

SYSTEM INFORMATION
OS type and version Ubuntu Linux 22.04.4
Webmin version 2.111
Usermin version 2.010
Virtualmin version 7.10.0
Theme version 21.10
Package updates All installed packages are up to date

I have a live server and a dev server. I would like to copy a server template from one physical server to another and I have a few questions:

  1. is it safe to manually copy templates from /etc/webmin/virtual-server/templates and then copy them into the same folder on the remote system?
  2. If I use the backup and restore mechanism as outlined here Separate function to Backup Server Templates [#19325] | Virtualmin will this overwrite all of the current templates in the target system when I restore?
  3. Where is the Default Template stored as it does not seem to be in this folder.
  • 0 = empty
  • 1 = Settings For Sub-Servers
  • 169 = Developer
  • 171 = chicken

Thanks in advanced

Don’t rely on old posts they could very well have changed over the years

i don’t usually bump posts :smile:

Can anyone answer my 3 points above?

@Ilia If you get chance could you look at this question for me. Thanks

Yes, it should work just fine, as long as a template is stored (saved) as a file.

Yes, it should be overwritten upon restore; that is the purpose of the restore function.

If it isn’t saved, then Virtualmin relies on the defaults primarily defined in the /etc/webmin/virtual-server/config file.

@Ilia thanks for the info. I will add this to my almanac :smile:

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