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.
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:
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).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.
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:
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.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
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.[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