Trying to get backup-domain and restore-domain working

hello -

for whatever reason, i am having trouble getting this working. here is my backup-domain command:

virtualmin backup-domain \
   --dest ./000-first \
  --feature dns \
  --feature web \
  --feature ssl \
  --feature dir   \
  --domain 000-first.com  ;

and here is my restore command:

virtualmin restore-domain \
  --source ./000-first.com.tar.gz \
  --feature dir \
  --domain 000-first.com ; '

but no matter what i try, i keep getting:

Backup does not contain virtual server information for missing domain 000-first.com.
Restore failed!

i also tried --newformat but got the same message:

 virtualmin backup-domain  \
   --new-format \
   --dest ./virtualmin/  \
   --feature dns \
   --feature web \
   --feature ssl \
   --feature dir \
   --domain 000-first.com  ;

any suggestions?

EDIT: strangely, removing --feature dir (omitting all the data) didnt work for me either.

| sending server
|------------------------------|-------------------------------|
| OS type and version | RL 8.1 |
| Webmin version | 2.621 |
| Virtualmin version | virtualmin version: 8.0.1.pro |

| receiving server
| OS type and version | RL 10.1 |
| Webmin version | 2.621 |
| Virtualmin version | virtualmin version: 8.0.0 |

1 Like

Just a nit pick , some end of lines you use \ and some your using |, could that be a typo?

yes typo. i put each switch on a separate line here for point of illustration & make it easier to read. but typo’s are now fixed.

i am starting to believe these odd problems may be because when rocky linux first came out, i installed virtualmin/webmin with an unstable release (or something like that). there have been other problems along the way that were most likely tied to the “rushed” installation.

when RedHat and Centos got into the quarrel several years ago, they gave the centos people very little time to migrate.

so, i think now the best strategy will be to just let the NEW virtualmin installation create its own VM’s from scratch, and i will just tar over all the directories.

further, i strongly suspect if i created a temp VM on a new installation and did the backup/restore to a test server, that would work perfectly.

You could also try Transfer, but be wary pf trasnfer to EL10 - Rocky, Alma, RH etc, as it has bugs.
Transfer to EL9 variants is solid in my experience.
The advantage of transfer is that it adapts some settings to the new server whereas restore doesn’t.

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