[CPANEL-21020] Backup Transporter unable to prune directories using Pure-FTPD due to .master.meta

regisit

Active Member
Jul 31, 2013
28
1
3
cPanel Access Level
Root Administrator
Several versions ago, cPanel broke backups to Windows FTP servers. What was working fine, stopped. All backups now fail to prune old backups with the error:

Error pruning ... The directory is not empty.

Advice at the time was to change Windows FTP directory listing style to UNIX, but that doesn't fix it.

Anyone have a solution to getting cPanel working properly again with Windows FTP servers? To confirm, backups are running but pruning old backups is not happening, causing the destination to run out of space.
 

regisit

Active Member
Jul 31, 2013
28
1
3
cPanel Access Level
Root Administrator
Just to add further, the issue appears to be down to a file called .master.meta not being deleted before the directory is deleted. This causes the accounts folder pruning to fail, resulting in the system archives being left in the backup destination.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,229
463

regisit

Active Member
Jul 31, 2013
28
1
3
cPanel Access Level
Root Administrator
Hi Michael,

This has been an issue for more than a year now - when are you going to address it? Last update on that thread was Nov 2017 so clearly this not being treated with any urgency in cPanel! It should be as it affects daily. Prior to whatever change was made in cPanel, it worked fine.

Surely it's a simple case of deleting that file before attempting to delete the folder!?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,229
463
Hello @regisit,

I've merged your thread into this one.

I don't have a time frame to offer on implementation of a solution at this time, but I've linked this thread to the case and will provide an update as soon as more information is available.

As a temporary workaround, you can disable metadata for backups via the following command:

Code:
whmapi1 backup_config_set disable_metadata=yes
More information about disabling metadata for backups is documented on the link below:

How to Manage Metadata Settings - cPanel Knowledge Base - cPanel Documentation

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,229
463
Hello,

To update, this was determined to relate to the write permissions on hidden files on the remote FTP server. We've updated our Backup Configuration document to include the following warning:

Make certain that any hidden files (files that begin with a period(.)) on the FTP server have write permissions. The backup system can only prune data from files with these permissions.
Thank you.