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.

WHM Backups filling up disk

Discussion in 'Data Protection' started by DWChrisG, Aug 10, 2017.

Tags:
  1. DWChrisG

    DWChrisG Member

    Joined:
    Aug 10, 2017
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Hello there guys, good evening

    I seem to have bumped into an issue bugging our server lately..

    Our setup includes a FTP-backup(Backups are being saved properly) and of course a server(Running: cPanel & WHM 64.0 (build 36)) that we're backing it up from..

    The actual issue we're facing is: WHM does not delete old backups from /backup, while the setting on the web-interface( Retain backups in the default backup directory. ) is unchecked..

    Are there any available besides setting up a cronjob to rm the files?
     
  2. DWChrisG

    DWChrisG Member

    Joined:
    Aug 10, 2017
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Wanted to edit the post above - got an error...

    - Removed -

    Anyway, what i wanted to edit is: "Are there any available fixes besides setting up a cronjob to rm the files?"
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    15,617
    Likes Received:
    296
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    New users are unable to edit posts, my apologies for the issue.

    If you just changed the backup settings, the old backups won't be removed until they cycle out.
     
  4. DWChrisG

    DWChrisG Member

    Joined:
    Aug 10, 2017
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Thanks for the clarification about edits!

    I am afraid that this is not our case here, no changes were made to that setting.. Besides, my Disk went full resulting in several of my webpages to go down through the night.
     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    15,617
    Likes Received:
    296
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You're not storing backups on the same HDD as your accounts are you? How many days of backups are you setup to store? If you're set for 7 days for example, you could set it for 6 and delete one entire set of backups for that day and clear out some space easy enough.
     
  6. DWChrisG

    DWChrisG Member

    Joined:
    Aug 10, 2017
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Hey there, Good morning!

    Sadly I am, as secondary drive is not an option | not available at my plan..
    I am currently backing-up 3 days a week, plus 1 weekly, since that's pretty much alright for my FTP storage..

    According to the documentation, backups are being stored to HDD prior being copied to the FTP and deleted once copied away(right?)..

    Which brings up the question, Why do i still have older backups piling up on my local drive other than the last backup?
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,037
    Likes Received:
    1,280
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You can find the backup logs in the /usr/local/cpanel/logs/cpbackup/ directory. Could you review the most recent log and verify if any error messages occurred during the backup process?

    Thank you.
     
  8. DWChrisG

    DWChrisG Member

    Joined:
    Aug 10, 2017
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Obviously on the latest one; The server did run out of space, as mentioned on the post above!

    The one before that, did not show any errors and everything was properly backed up to the FTP, yet it never got deleted(locally) after being copied away to the FTP?

    Bump - Still looking for a solution
     
    #8 DWChrisG, Aug 12, 2017 at 1:20 PM
    Last edited by a moderator: Aug 14, 2017 at 4:06 AM
  9. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    15,617
    Likes Received:
    296
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:

    Could you clarify this post a bit more? You are backing up to the same drive, and do not have a secondary drive. But your files are being copied to the FTP?


    Please feel free to open a ticket directly to cPanel Technical Support about this if you wish.
     
  10. DWChrisG

    DWChrisG Member

    Joined:
    Aug 10, 2017
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Hello there,

    As stated in my first post, my setup includes:

    • A server | Running: cPanel & WHM 64.0 (build 36) (One HDD)
    • An FTP-Backup space

    Notably, backups are being copied onto the FTP BUT the files are not getting deleted from the local drive AFTER the transfer has been completed!

    As stated above: The option "Retain backups in the default backup directory." is unchecked, as well as the backup process is properly being executed according to the latest logs at "/usr/local/cpanel/logs/cpbackup/"

    Ideally, I only want to keep backups onto the FTP and NOT on the Local Drive

    Regarding opening a ticket, I would prefer this staying on the forum, just because it may help somebody with the same problem/issue in the future.
     
  11. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    15,617
    Likes Received:
    296
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Well, once the ticket is resolved you can update the thread with the outcome of course.
     
  12. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    259
    Likes Received:
    75
    Trophy Points:
    28
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Could you clarify if the files you are seeing retained in the default backup directory are system files or account files ?
     
  13. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    15,617
    Likes Received:
    296
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Are you getting emails about backups completing? For example:

    Code:
    [2017-08-16 02:24:59 -0400] Done
    [2017-08-16 02:24:59 -0400] Storing Addon Domains....
    [2017-08-16 02:24:59 -0400] Copying password.......[2017-08-16 02:24:59 -0400] Done
    [2017-08-16 02:24:59 -0400] Copying shell.......[2017-08-16 02:24:59 -0400] Done
    [2017-08-16 02:24:59 -0400] Creating Archive ....................................................................................
    ................................................................................
    ................................................................................
    ................................................................................
    ........................................
    [2017-08-16 02:25:35 -0400] Done
    [2017-08-16 02:25:35 -0400] pkgacctfile is: /backup/2017-08-16/accounts/someusr.tar.gz
    [2017-08-16 02:25:35 -0400]
    [2017-08-16 02:25:35 -0400] size is: xxxxxxxxxxxx
    [2017-08-16 02:25:35 -0400]
    [2017-08-16 02:25:35 -0400] homesize is: xxxxxxxxxxxx
    [2017-08-16 02:25:35 -0400]
    [2017-08-16 02:25:35 -0400] homefiles is: xxxxxxx
    [2017-08-16 02:25:35 -0400] pkgacct completed
    [2017-08-16 02:25:36 -0400] info [backup] Queuing daily backup copy for transport
    [2017-08-16 02:25:36 -0400] info [backup] Queuing transport of file: /backup/2017-08-16/accounts/someusr.tar.gz
    [2017-08-16 02:25:49 -0400] info [backup] Pruning backup directory: /backup/2017-08-09
    [2017-08-16 02:25:49 -0400] info [backup] Queuing prune operation for remote destination daily backups
    [2017-08-16 02:26:01 -0400] info [backup] Queuing transport reporter
    [2017-08-16 02:26:12 -0400] info [backup] Completed at Wed Aug 16 02:26:12 2017
    [2017-08-16 02:26:12 -0400] info [backup] Final state is Backup::Success (0)
    Note the prune operation mentioned. What does your email or log say?
     
  14. DWChrisG

    DWChrisG Member

    Joined:
    Aug 10, 2017
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Those are indeed account backups.



    My part of the log:

    Code:
    [2017-08-15 06:06:12 +0300] Done
    [2017-08-15 06:06:12 +0300] Storing Addon Domains....
    [2017-08-15 06:06:12 +0300] Copying password.......[2017-08-15 06:06:12 +0300] Done
    [2017-08-15 06:06:12 +0300] Copying shell.......[2017-08-15 06:06:12 +0300] Done
    [2017-08-15 06:06:12 +0300] Creating Archive ....................................................................................
    ................................................................................
    ................................................................................
    ................................................................................
    ................................................................................
    ................................................................................
    ................................................................................
    ................................................................................
    ................................................................................
    ................................................................................
    ................................................................................
    ................................................................................
    ................................................................................
    ................................................................................
    ................................................................................
    ................................................................................
    ................................................................................
    ................................................................................
    ................................................................................
    ............................................................
    [2017-08-15 06:08:50 +0300] Done
    [2017-08-15 06:08:50 +0300] pkgacctfile is: /backup/2017-08-15/accounts/<account>.tar.gz
    [2017-08-15 06:08:50 +0300]
    [2017-08-15 06:08:50 +0300] size is: 3414584508
    [2017-08-15 06:08:50 +0300]
    [2017-08-15 06:08:50 +0300] homesize is: 3877556224
    [2017-08-15 06:08:50 +0300]
    [2017-08-15 06:08:50 +0300] homefiles is: 65646
    [2017-08-15 06:08:50 +0300] pkgacct completed
    [2017-08-15 06:08:50 +0300] info [backup] Queuing daily backup copy for transport
    [2017-08-15 06:08:50 +0300] info [backup] Queuing transport of file: /backup/2017-08-15/accounts/<account>.tar.gz
    [2017-08-15 06:08:56 +0300] info [backup] Queuing prune operation for remote destination daily backups
    [2017-08-15 06:08:56 +0300] info [backup] Queuing transport reporter
    [2017-08-15 06:08:56 +0300] info [backup] Completed at Tue Aug 15 06:08:56 2017
    [2017-08-15 06:08:56 +0300] info [backup] Final state is Backup::Success (0)
    [2017-08-15 06:08:56 +0300] info [backup] Sent Backup::Success notification.
    As noted, I am indeed missing a prune job on my local backup directory (/backup)..

    I am afraid there are no other options to tweak besides: "Retain backups in the default backup directory."
    Right?
     
  15. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    15,617
    Likes Received:
    296
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You really should open a ticket about this for fastest resolution.
     
Loading...

Share This Page