I am having an issue with cPanel Backups. The system is not pruning the folders following the retention settings. When reviewing the logs I am able to see the following during the backup:
rsync: opendir "/home/*DOMAIN*/public_ftp" failed: Permission denied (13)
Then when the system is attempting to remove the folder for the pruning i get the following:
[2022-12-21 09:55:20 -0500] info [backup] Pruning backup directory: /mnt/SERVERbackup/2022-12-14
cannot chdir to child for /mnt/SERVERbackup/2022-12-14/accounts/*DOMAIN*/homedir/public_ftp: Permission denied at /usr/local/cpanel/bin/backup line 2034.
cannot remove directory for /mnt/SERVERbackup/2022-12-14/accounts/*DOMAIN*/homedir: Directory not empty at /usr/local/cpanel/bin/backup line 2034.
cannot remove directory for /mnt/SERVERbackup/2022-12-14/accounts/*DOMAIN*: Directory not empty at /usr/local/cpanel/bin/backup line 2034.
cannot remove directory for /mnt/SERVERbackup/2022-12-14/accounts: Directory not empty at /usr/local/cpanel/bin/backup line 2034.
cannot remove directory for /mnt/SERVERbackup/2022-12-14: Directory not empty at /usr/local/cpanel/bin/backup line 2034.
The account that is causing the issue is currently suspended.
Is there a way to avoid this on suspended accounts as it is forcing us to manually prune the folders afterwards.
Thanks
rsync: opendir "/home/*DOMAIN*/public_ftp" failed: Permission denied (13)
Then when the system is attempting to remove the folder for the pruning i get the following:
[2022-12-21 09:55:20 -0500] info [backup] Pruning backup directory: /mnt/SERVERbackup/2022-12-14
cannot chdir to child for /mnt/SERVERbackup/2022-12-14/accounts/*DOMAIN*/homedir/public_ftp: Permission denied at /usr/local/cpanel/bin/backup line 2034.
cannot remove directory for /mnt/SERVERbackup/2022-12-14/accounts/*DOMAIN*/homedir: Directory not empty at /usr/local/cpanel/bin/backup line 2034.
cannot remove directory for /mnt/SERVERbackup/2022-12-14/accounts/*DOMAIN*: Directory not empty at /usr/local/cpanel/bin/backup line 2034.
cannot remove directory for /mnt/SERVERbackup/2022-12-14/accounts: Directory not empty at /usr/local/cpanel/bin/backup line 2034.
cannot remove directory for /mnt/SERVERbackup/2022-12-14: Directory not empty at /usr/local/cpanel/bin/backup line 2034.
The account that is causing the issue is currently suspended.
Is there a way to avoid this on suspended accounts as it is forcing us to manually prune the folders afterwards.
Thanks
Last edited by a moderator: