d3ag0s

Registered
Feb 13, 2013
3
0
1
cPanel Access Level
Root Administrator
I am not sure if this has been changed recently (hard to define recently, as it has been a while since my last interaction with the backup tool from cPanel), so this is why I'm having this post created. For one of my customers I am testing the remote FTP backup option.

pkgacctfile is: /home/cpbackuptmp/cpbackup/daily/[username].tar.gz
size is: 4231167617
homesize is: 15253094400
...
...
Net::FTP=GLOB(0x893756c)<<< 150 Ok to send data.
Net::FTP=GLOB(0x893756c)>>> �ABOR
Net::FTP=GLOB(0x893756c)<<< 451 Failure writing to local file.
Net::FTP=GLOB(0x893756c)<<< 225 No transfer to ABOR.
The backup fails to be transferred to the remote location, mainly as the quota of the account is exceeded (perfectly aware of the reason behind this).

My concern is that, if the cPanel backup is configured to be uploaded to the remote FTP server and the FTP part fails then the backup does not remain on the local server. In these cases I am just left with no good backup at all.

The 2nd part of the story, is that even if the transfer fails, the email that is being sent reports that a complete backup was performed:
2013-02-12 01:38:56 1U5CKG-0005q3-Ki <= [email protected] U=root P=local S=10398 T="[cpbackup] Backup complete on server.domain.com" for [email protected]
2013-02-12 01:38:56 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1U5CKG-0005q3-Ki
2013-02-12 01:38:57 1U5CKG-0005q3-Ki => [email protected] R=lookuphost T=remote_smtp H=smtp.server.net [8.8.4.4]
2013-02-12 01:38:57 1U5CKG-0005q3-Ki Completed
My customer was ignoring all the time the body of the message, mainly as he was sure that - based on the subject - a full backup was successfully performed and stored in the remote FTP location.

[email protected] [~]# cat /etc/cpbackup.conf
BACKUPACCTS yes
MYSQLBACKUP accounts
BACKUPINT daily
BACKUPINC no
COMPRESSACCTS yes
BACKUPFTPDIR /
BACKUPENABLE yes
GZIPRSYNCOPTS --rsyncable
BACKUPDIR /backup
BACKUPRETWEEKLY 1
BACKUPFILES no
BACKUPLOGS no
BACKUPTYPE ftp
BACKUP2 yes
BACKUPRETMONTHLY 0
BACKUPFTPUSER [username here]
BACKUPDAYS 0,1,2,3,4,5,6
USEBINARYPKGACCT no
LINKDEST no
DIEIFNOTMOUNTED no
LOCALZONESONLY no
BACKUPFTPPASSIVE yes
BACKUPMOUNT no
BACKUPCHECK yes
BACKUPFTPHOST [IP address here]
BACKUPRETDAILY 1
Can someone share some light into this? To recap, I think it would be wiser to keep the backup stored on the local server if the FTP transfer fails (if this can be forced, please let me know how). And 2nd, if the subject of the backup notification can be changed if the transfer fails.
 

Infopro

Well-Known Member
May 20, 2003
17,113
507
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
The backup fails to be transferred to the remote location, mainly as the quota of the account is exceeded (perfectly aware of the reason behind this).
If you increase the quota for the account and force the backup to run, does it complete properly?

You might want to open a ticket about this here:
http://go.cpanel.net/bugs

Is there anything in the /home/cpbackuptmp/ directory?
 

d3ag0s

Registered
Feb 13, 2013
3
0
1
cPanel Access Level
Root Administrator
Yes, increasing the quota of the FTP account is resulting on having the backup successfully stored to the remote location. As for /home/cpbackuptmp/ the directory is empty at the end of the backup process.
 

nunoleite

Well-Known Member
Jun 4, 2007
65
3
158
Hi!

Is there any solution to this? I'm having the exact same problem.

Thanks
Nuno Leite