DA didn't give any details about the error, so I'm not sure where to go from here. Any ideas?
It's not Directadmin failing to give the details, it's the script.
Personally, I've not been able to use this script in nearly a year after the Cpanel code changes.
Error during Restore
Details
--- da.cpanel.import.pl 2009-01-13 14:13:37.000000000 -0800
+++ da.cpanel.import.mine.pl 2009-03-25 15:03:52.000000000 -0700
@@ -428,8 +428,33 @@ $domain. 14400 IN MX 0 $
print "($mail_count converted)$mail_list";
+ # Copy mail forwarders
+ print("\n\t\tAliases/Forwarders converted... ");
+ my @va;
+ my @alias;
+ my $alias_count = 0;
+
+ # Open cPanel aliases file and save in array
+ open(VAFILE, "${ROOT_PATH}import/$incoming_user/va/$domain");
+ @va = <VAFILE>;
+ close(VAFILE);
+
+ # Create DirectAdmin aliases file, convert aliases,
+ # and append to DirectAdmin aliases file
+ open(DAALIASES, ">${ROOT_PATH}export/$incoming_user/backup/$domain/email/aliases");
+ foreach $line (@va)
+ {
+ if ( $line=~/\@$domain: / )
+ {
+ @alias = split(/\@$domain: /,$line);
+ print DAALIASES $alias[0] . ":" . $alias[1];
+ $alias_count++;
+ }
+ }
+ close (DAALIASES);
+ print("($alias_count converted)");
+
# create some empty files (to keep DA from croaking)...
- open GH, ">${ROOT_PATH}export/$incoming_user/backup/$domain/email/aliases"; close GH;
open GH, ">${ROOT_PATH}export/$incoming_user/backup/$domain/email/autoresponder.conf"; close GH;
open GH, ">${ROOT_PATH}export/$incoming_user/backup/$domain/email/vacation.conf"; close GH;
open GH, ">${ROOT_PATH}export/$incoming_user/backup/$domain/email/email.conf"; close GH;
What did I do wrong or didn't do?
ls -l /root
[root@da ~]# ls -l /root
total 72
-rw-r--r-- 1 root root 21171 Apr 6 20:11 da.cpanel.import.pl
-rw-r--r-- 1 root root 267 Apr 6 20:01 defaults.conf
drwxr-xr-x 2 root root 4096 Apr 6 21:58 export
drwx--x--x 2 root root 4096 Apr 6 21:58 import
-rwxr-xr-x 1 root root 33439 Apr 4 22:33 setup.sh
[root@da ~]#
#!/usr/bin/perl
use strict;
use vars qw( $VERSION $ROOT_PATH );
$VERSION = '.9.4';
$ROOT_PATH = './';
&main;
I have tried countless times to get my rather large cpanel complete backup to migrate over to a DA backup. I have looked over countless details and am still having issues. If someone could possible help me it would be appreciated. I get to the point that it is working on the server but keeps giving an error and will not complete. Is there something special I need to have setup on cpanel so that it will match something on the DA server?
Examining backup-5.9.2009_09-48-04_lhent.tar.gz...
Fround user lhent..tar: backup-5.9.2009_09-48-04_lhent/homedir.tar: Wrote only 1024 of 10240 bytes
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
.
Switching to lhentertainment.net...
Collecting subdomains...
testing.lhentertainment.net
my.lhentertainment.net
Building DNS...
Processing FTPs...
Collecting pop3 addresses...
Copying remaining files... mv: cannot stat `./import/lhent/homedir/public_html': No such file or directory
Creating domain pointers...
Translating any Crontab entries... 0 total..
Dumping databases...
Creating DirectAdmin tarball...
Cleaning up...
Success!
1 tarballs attempted/converted.
~fin.