The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Deleting Backups from Additional Destinations?

Discussion in 'Data Protection' started by feldon27, Jul 17, 2015.

  1. feldon27

    feldon27 Well-Known Member

    Joined:
    Mar 12, 2003
    Messages:
    111
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Houston, TX
    This morning, cPanel Backup backed up about half the accounts on my server and then ran out of disk space. During this process, cPanel Backup did as instructed and uploaded those backups to an Additional Destination (an FTP site at my home). Here's my problem.... cPanel Backup then logged into my home FTP site and DELETED last week's backups.

    I've read this documentation a dozen times and I see nothing to indicate that this is the expected behavior:
    Further, I have found no checkbox that lets me tell cPanel to DELETE local backups but PRESERVE remote backups. Is the only option to REVOKE deletion privileges from the FTP account my cPanel server uses to upload files?

    Finally, here's the e-mailed report I got from cpbackup:
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Here's the general process of how it works:
    • Generation of local backups
    • Transport of local backups to remote destination in queued
    • Local backups are pruned
    • Pruning of backups on the remote destination is queued
    To clarify, are you expecting no pruning of backups on the local system when "Retain backups in the default backup directory" is enabled, or are you expecting it to follow the retention period that's configured?

    Thank you.
     
  3. feldon27

    feldon27 Well-Known Member

    Joined:
    Mar 12, 2003
    Messages:
    111
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Houston, TX
    Honestly I was expecting the "Retain backups in the default backup directory" setting to only affect LOCAL backups since space is often at a premium. I was not expecting it to do anything to REMOTE backups, since I could write a cron job on that server to prune old backups.

    But even if you believe that "Retain backups in the default backup directory" should apply to both local and remote servers, the script should absolutely not prune remote backups until the new backup has been successful!

    The backup script failed about 1/3 of the way through the new backups. Then it completely deleted the folder of last week's backups on the remote server. Rule #1 of backups -- don't delete the old backups until you confirm you have new backups.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you open a support ticket using the link in my signature so we can take a closer look at this? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
Loading...

Share This Page