using Webmin Version 1.500, Virtualmin Version 3.76.gpl on Debian 4.0 etch,
I try to restore a Virtualmin-Backup from
Webmin Version 1.500, Virtualmin Version 3.76.gpl on Debian 5.0 lenny.
But, I get the following error:
Starting restore of 1 domains from local file /home/falko/mydomain.de.tar.gz …
Extracting backup archive file …
… extraction of /home/falko/mydomain.de.tar.gz failed!
/bin/tar: Pattern matching characters used in file names. Please,
use --wildcards to enable pattern matching, or --no-wildcards to
suppress this warning.
.backup/*: Not found in archive
/bin/tar: Error exit delayed from previous errors
Backup does not contain virtual server information for missing domain mydomain.de.
… failed! See the progress output above for the reason why.
Is there anything I could do to get this server imported from Backup?
Yes, after doing
myserver:/home/falko# mkdir restore_test
myserver:/home/falko# cd restore_test/
myserver:/home/falko/restore_test# tar xzf …/mydomain.de.tar.gz
I have the following:
myserver:/home/falko/restore_test# ls -as -1
insgesamt 72
4 awstats
4 .awstats-htpasswd
4 .backup
4 .bash_history
4 cgi-bin
4 etc
4 fcgi-bin
4 homes
4 logs
4 public_html
4 .usermin
12 .viminfo
It sounds like you may be running into a bug of some kind.
What I’d recommend is to file a Support request, as Jamie may need to tweak some things so that the parameter you’re seeing above is used, as it’s possible some tar defaults have changed.
just to get around for now, I’ve searched for “.backup/*” and changed line 1093 in backup-libs.pl from
# Home format as in ZIP file
$homeformat{$f} = $f;
$extract = ".backup/*";
to
# Home format as in ZIP file
$homeformat{$f} = $f;
$extract = ".backup/";
–> then the restore worked flawlessly
(only apache2 wasn’t running any more afterwards caused by “Invalid command ‘FCGIWrapper’”, which hasn’t been noticed by virtualmin during restore, but this is another thing - virtualmin should IMHO at least call “apache2ctl configtest” before restarting apache).