I'm a user with a reseller account on a typical web hosting provider. My provider recently moved my account to a new server with Cpanel 11.42.1 installed. For years, I have been doing my own accounts backups to a remote server using Cpanel dofullbackup from a Perl script running on cron nightly. I have the cron job do a backup of one account per night. Since the move to the new server, dofullbackup doesn't seem to run. I use the following code snippet:
I can kickoff the process sudomaintoo.com&port=21&rdir=Backups&user=supersof&pass=xxxxxxxx
When I run my script with some write statements, this is what I see:
Everythiing looks ok, but the dofullbackup just doesn't seem to execute. I've also tried running as POST. Is there something new in releaser 11.42.1 that would account for dofullbackup not running?
Code:
$authstr = "$account:$passwd";
$cPanelUidPass = encode_base64($authstr);
# Get the port address
$iaddr = inet_aton($whmServer);
$paddr = sockaddr_in($whmPortNumber , $iaddr);
# Create the socket, connect to the port
socket(SOCKET, PF_INET, SOCK_STREAM, 0) or die "Socket failed for client account: $account[$i]: $!";
connect(SOCKET, $paddr) or die "Connect failed for client account: $account[$i]: $!";
autoflush SOCKET (1);
# Request dofullbackup of account
$params = "?dest=$remote_dest&email=$email&server=$server&user=$user&pass=$pass&port=$port&rdir=$rdir";
print SOCKET "GET /frontend/x3/backup/dofullbackup.html$params\r\n";
print SOCKET "HTTPS/1.0\r\n";
print SOCKET "Host: $domain \r\n");
print SOCKET "Authorization: Basic $cPanelUidPass \r\n";
print SOCKET "Accept: text/html; */*\n";
print SOCKET "Connection: close\r\n\r\n";
When I run my script with some write statements, this is what I see:
Code:
>> Remote Backup Begun at 20:14:01 on May 12 2014 <<
--- Processing client account 1: jrnhosti
--- authstr: username:xxxxxxxx
--- domain: domain.net
--- cPanelUidPass: anJuaG9zdGk6bGVlbmllLTE=
>> domain.net Backup Started at 20:14:01 on May 12 2014 <<
--- GET
/frontend/x3/backup/dofullbackup.html?dest=passiveftp&[email protected]&server=nj01.domain.com&port=21&rdir=Backups&user=supersof&pass=xxxxxxxx
--- HTTPS/1.0
--- Host: domain.net
--- Authorization: Basic anJuaG9zdGk6bGVlbmllLTE=
--- Accept: text/html; */*
--- Connection: close
>> domain.net Backup Ended at 20:14:01 on May 12 2014 <<
>> Remote Backup Completed at 20:15:31 on May 12 2014 <<
Last edited by a moderator: