New backup does not retain

fate12

Active Member
Oct 29, 2013
41
1
8
cPanel Access Level
Root Administrator
I've enabled the new backup after using the Legacy backup for a while.
I've set it up so it should retain the backups locally as well as send them through FTP.
I should retain three daily backups.

Its sending the backup through FTP but no old backups are retained so there's always only one backup.
Also it does not save the backups local while I've set to do it.
Tried changing the local directory but that made no difference.

I could look in the log but have no idea what to look for.
Any ideas what could be wrong?

Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello :)

Please check the backup logs in:

Code:
/usr/local/cpanel/logs/cpbackup
Look for error messages, or any output that looks like it may be an error.

Thank you.
 

fate12

Active Member
Oct 29, 2013
41
1
8
cPanel Access Level
Root Administrator
There are no errors in the log.
The backup seems to ignore the directory I set in Cpanel for the backups. I've set it to /backup-new/

Some snippets:
------------------
[cpbackup] Setting I/O priority to reduce system load: best-effort: prio 3
[cpbackup] backup point /home/cpbackuptmp/cpbackup/daily is 1.11 days old
[cpbackup] backup point /home/cpbackuptmp/cpbackup/weekly is 1.11 days old
[cpbackup] backup point /home/cpbackuptmp/cpbackup/monthly is 50.84 days old
[cpbackup] Starting full MySQL database backups
/bin/gtar: Removing leading `/' from member names
/bin/gtar: /var/lib/mysql/mysql.sock: socket ignored
/bin/gtar: /var/lib/mysql/eximstats/smtp.MYD: file changed as we read it
[cpbackup] Failed to perform full MySQL database backup
[cpbackup] The following backups will be updated: daily,monthly
[cpbackup] Running account backup with target : /home/cpbackuptmp/cpbackup/daily
pkgacct started.
-------------------

The directory /home/cpbackuptmp/cpbackup/daily is empty apart from:
-rw-r--r-- 1 root root 25 Oct 29 07:20 cpbackupstatus.cfg
So local backups are not stored.

A snippet from the ftp part:
-------------------
Net::FTP=GLOB(0x34ec180)<<< 220 ProFTPD 1.3.4c Server xxxx
Net::FTP=GLOB(0x34ec180)>>> USER xxxx
Net::FTP=GLOB(0x34ec180)<<< 331 Password required for xxxx
Net::FTP=GLOB(0x34ec180)>>> PASS ....
Net::FTP=GLOB(0x34ec180)<<< 230 User xxxx logged in
Net::FTP=GLOB(0x34ec180)>>> TYPE I
Net::FTP=GLOB(0x34ec180)<<< 200 Type set to I
Net::FTP=GLOB(0x34ec180)>>> MKD cpbackup
Net::FTP=GLOB(0x34ec180)<<< 550 cpbackup: Directory not empty
Net::FTP=GLOB(0x34ec180)>>> MKD cpbackup/daily
Net::FTP=GLOB(0x34ec180)<<< 550 cpbackup/daily: Directory not empty
Net::FTP=GLOB(0x34ec180)>>> CWD cpbackup/daily
Net::FTP=GLOB(0x34ec180)<<< 250 CWD command successful
Net::FTP=GLOB(0x34ec180)>>> ALLO 381276160
Net::FTP=GLOB(0x34ec180)<<< 200 ALLO command successful
Net::FTP=GLOB(0x34ec180)>>> PASV
Net::FTP=GLOB(0x34ec180)<<< 227 Entering Passive Mode (78,47,17,109,224,203).
Net::FTP=GLOB(0x34ec180)>>> STOR xxx.tar
Net::FTP=GLOB(0x34ec180)<<< 150 Opening BINARY mode data connection for xxxx.tar
Net::FTP=GLOB(0x34ec180)<<< 226 Transfer complete
Net::FTP=GLOB(0x34ec180)>>> QUIT
---------------------------------------------

It does not save the previous backup.
Where are all the backup settings stored? Is there some configfile?
It seems to ignore most settings I set in Cpanel.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Please open a support ticket so we can take a closer look:

Submit A Ticket

You can post the ticket number here so we can update this thread with the outcome.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
To update, it looks like this may have been a temporary connection issue with the remote FTP server. Subsequent backup generations have completed successfully.

Thank you.