Skip to main content

[CPANEL-29469] Backup creating empty folders for no apparent reason

Comments

8 comments

  • cPanelLauren
    Are the backups completing as expected? Meaning are there errors in the backup logs? You can find them at /usr/local/cpanel/logs/cpbackup/
    0
  • Smartypants
    Are the backups completing as expected? Meaning are there errors in the backup logs? You can find them at /usr/local/cpanel/logs/cpbackup/

    I haven't checked the logs, but it does complete the backups. Continuing the example, I have the following folders: /backup/weekly/2019-07-21/accounts/ and /backup/2019-07-21/accounts/ The backups were successfully created & copied to the /backup/weekly/2019-07-21/accounts/ folder, while /backup/2019-07-21/accounts/ is empty & there doesn't seem to be any reason for it to exist. It's more of an annoyance than anything else, though I've noticed it happening for a while now & it has caused a few moments of panic, along the lines of "Okay, I'll just restore that from backu-OH NO WHERE DID ALL THE BACKUPS GO?!?!? ...oh, wait, I'm looking in the wrong folder, phew, I'll just go get that from the correct folder once my heart starts beating again."
    0
  • cPanelLauren
    Hi @Smartypants My curiosity being whether or not the pruning operation is completing properly. It would be noted in either the backup logs or the backup_transport logs if there were errors.
    0
  • Smartypants
    Hi @Smartypants My curiosity being whether or not the pruning operation is completing properly. It would be noted in either the backup logs or the backup_transport logs if there were errors.

    I'm not certain - I don't see separate backup & backup_transport logs in that folder, just two .log files that appear to be from the last 2 backup runs: 1563084008.log and 1563688808.log. When I search through the latest one, there are no errors related to pruning, and the only log items that appear to be related to pruning are: [2019-07-21 02:00:10 -0400] info [backup] Pruning metadata for backup at /backup/weekly/2019-07-21 And: [2019-07-21 12:10:38 -0400] info [backup] Queuing prune operation for remote destination weekly backups
    0
  • cPanelLauren
    Hi @Smartypants That post you're referencing is not quite the same issue you seem to be encountering. I think that the best way to go about this at this point would be to open a ticket with us. You shouldn't need to have to go through and remove empty folders when backups run.
    0
  • Smartypants
    After much back-and-forth, it was finally confirmed that this is in fact a CPanel issue (ticket ID# 13265829) - so the only option is to wait and hope that it will eventually be fixed in a future update...
    0
  • cPanelLauren
    Hi @Smartypants I did have a feeling that something was amiss here, that is not the intended behavior. CPANEL-29469 is open for this issue which seems to be specific to SFTP remote backup destinations only. I'll update here when the issue is updated or added to a RELEASE version of cPanel/WHM Thanks!
    0

Please sign in to leave a comment.