Submitted by webwzrd on Sat, 01/05/2013 - 10:17 Pro Licensee
CentOS 6.3 / Virtualmin Pro
Due to a failing hardrive, I am migrating to a replacement server. I am getting the following error:
[root@secure]# virtualmin restore-domain --source /backup/oldServer --all-domains --all-features Checking for missing features .. .. all features in backup are supported
Starting restore.. Extracting backup archive files .. .. extraction of /backup/oldServer/mxxxxxxxe.com.tar.gz failed : gzip: stdin: invalid compressed data--format violated /bin/tar: Unexpected EOF in archive /bin/tar: Error is not recoverable: exiting now
Backup does not contain virtual server information for missing domain vxxxxxxxxxxxs.com.
Restore failed!
Please advise, Brian
Status:
Active
Comments
Submitted by andreychek on Sat, 01/05/2013 - 10:31 Comment #1
Howdy -- it sounds like your backup archive is corrupted. If you think the drive was failing, it's possible that caused a problem when generating the backup.
Do you by chance have an older backup file for that particular Virtual Server?
Submitted by webwzrd on Sat, 01/05/2013 - 10:35 Pro Licensee Comment #2
I do have an older backup, but won't be as up to date. What would the command be to restore all, but exclude any that report errors?
Submitted by andreychek on Sat, 01/05/2013 - 10:43 Comment #3
The "restore-domain" option accepts both the --skip-warnings and --continue-on-error options.
You could pass both of those in, to make sure it continues no matter what.
Submitted by webwzrd on Sat, 01/05/2013 - 10:55 Pro Licensee Comment #4
Would that give me a list of the skipped restores?
Is there a command to skip specific virtual domains?
Submitted by andreychek on Sat, 01/05/2013 - 11:14 Comment #5
It wouldn't give you a list, you'd need to review the output to determine which domains had problems.
You could use a command like this to capture all the output:
virtualmin restore-domain --source /backup/oldServer --all-domains --all-features --skip-warnings --continue-on-error 2>&1 > /tmp/restore_log.txt
That will place all the warning and error output in the file "/tmp/restore_log.txt".
There isn't a way to skip a domain when pointing the restore at a directory -- other than to remove that domain's backup archive from that directory.
The only other way would be to specify on the command line which domains to include in the restore. But that method seems cumbersome for restoring all but a few domains.
Submitted by webwzrd on Sat, 01/05/2013 - 11:21 Pro Licensee Comment #6
Here's the idea I came up with. The failing server is still up and running - I made fresh backups of the two virtual domains identified in the restore error. Transferred them to the new server and the restore is now successfully running. There are a couple hundred accounts, so we'll see how this goes, but so far - so good.
Submitted by webwzrd on Sat, 01/05/2013 - 12:53 Pro Licensee Comment #7
The restore has completed. Looks like it was only a couple bad virtual server backups that were causing the problem.
Submitted by spool on Mon, 01/21/2013 - 10:02 Comment #8
I am experiencing similar problems with an attempt to restore from backups. The old server experienced a catastrophic failure a couple of days ago. We set up a new server with Centos 6.3 and installed Virtualmin. I tried re-creating virtual servers before I realized that Virtualmin had the restore function. We have tried restoring a couple of times and it failed.
Should we try a fresh install of Virtualmin and then try to restore?
There are major gaps in my knowledge. I know that DNS/BIND isn't working but have no clue how to correct it. If we get the restore function to work, will DNS/BIND be fixed?
I can give you access to the output if you contact me privately (stella.pool@gmail.com)
Stella Pool Monticello Avenue Community Network Charlottesville, VA
Submitted by andreychek on Mon, 01/21/2013 - 10:04 Comment #9
Hi spool -- can you open up a new Support Request, mark it as private, and in there include the output you are seeing? Thanks!
Submitted by spool on Mon, 01/21/2013 - 11:22 Comment #10
Audrey,
Did you see my support request? Is there a phone number I can call to reach you?
Stella