Skip to main content

S3 Backups not being deleted

Comments

8 comments

  • cPanelMichael
    Hello, There's a thread on this at:
    0
  • platinum
    Ah I see - I thought that might have been implemented as the last reply on that feature request says it does work, and the most recent thread about it here was asking about how to stop it deleting files. I also get these messages in the transporter log, which say it's attempting to prune?
    [2015-06-05 08:04:16 +1000] info [cpbackup_transporter] Starting a "prune" operation on the "Server-Name" destination ID XXXXX
    0
  • cPanelMichael
    [2015-06-05 08:04:16 +1000] info [cpbackup_transporter] Starting a "prune" operation on the "Server-Name" destination ID XXXXX

    Hello, Yes, this message indicates it's pruning the expired backups on the remote destination. Thank you.
    0
  • platinum
    Well this is confusing haha. So it does prune expired backups on a remote destination (in this case S3) ? What qualifies an "expired" backup - as at the moment it seems like it's just storing everything.
    0
  • cPanelMichael
    Yes, for instance, daily backups are replaced with new daily backups. There is an internal case open (#111053) to address an issue where Amazon backups are not being pruned from Amazon S3 destination servers, however you should see errors in /usr/local/cpanel/logs/cpbackup_transporter.log when this happens. Thank you.
    0
  • LostNerd
    There is also another internal case open (#187065) which has recently been discovered to be relevant to the S3 platform, not just FTP:
    187065 - Pruning remote backups can fail when FTP directory listing format is different than expected
    The definition I've received from P. Elsner is: When pruning old backups, we list the directory contents and we look for a specific directory structure.. $string !~ /^[rwxsStT-]{9}$/ That means the files have to begin with a permissions string that starts with rwxsSrT-
    For cPanel Staff: Support Ticket ID: 6578307 for more info on what I have quoted.
    0
  • platinum
    Yes, for instance, daily backups are replaced with new daily backups. There is an internal case open (#111053) to address an issue where Amazon backups are not being pruned from Amazon S3 destination servers, however you should see errors in /usr/local/cpanel/logs/cpbackup_transporter.log when this happens. Thank you.

    Here's my log:
    [2015-06-11 12:08:11 +1000] info [cpbackup_transporter] Starting a "prune" operation on the "XXXXXX" destination ID "XXXXXX". [2015-06-11 12:08:12 +1000] info [cpbackup_transporter] cpbackup_transporter - Checking queue for tasks [2015-06-11 12:08:12 +1000] info [cpbackup_transporter] cpbackup_transporter - Processing next task [2015-06-11 12:08:12 +1000] info [cpbackup_transporter] cpbackup_transporter - Checking queue for tasks [2015-06-11 12:08:12 +1000] info [cpbackup_transporter] cpbackup_transporter - Exiting - the queue has been emptied; no more work to do [2015-06-11 12:08:12 +1000] info [cpbackup_transporter] cPanel Backup Transporter Queue Daemon is being stopped.
    Nothing has been removed, I've got a backlog of about 10 daily backups built up again. Is there anything else I can check or is this a bug?
    0
  • cPanelMichael
    Feel free to open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0

Please sign in to leave a comment.