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.

Have a max daily backup

Discussion in 'Data Protection' started by constella, Feb 2, 2017.

Tags:
  1. constella

    constella Registered

    Joined:
    Nov 29, 2012
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi,

    I backup every day (retain 1 Daily backups) locally and to S3.

    After 5 Week in my backup folder i have backup of
    Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday = 7 backups. NOT ok for me.

    On my S3 I have 5 week * 7 week= 35 backups. Witch is OK for me.

    What i want, it's todo local backup every day, transfert to S3 everyday BUT only keep only 3 backup on my local backup drive. Because i dont have enough space, BUT i want have some backup local for the pratical raison.

    It's possible?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    You should not retain more than one daily backup archives if you have configured backup retention to "1". This suggests pruning is failing because the backup process is failing for one or more accounts. Do you notice any error messages in the backup logs stored within the /usr/local/cpanel/logs/cpbackup/ directory?

    Thank you.
     
  3. constella

    constella Registered

    Joined:
    Nov 29, 2012
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Yes the file of 157kb end with :
    [2017-01-28 07:52:00 +0000] homesize is: 596045824
    [2017-01-28 07:52:00 +0000]
    [2017-01-28 07:52:00 +0000] homefiles is: 18374
    [2017-01-28 07:52:00 +0000] pkgacct completed
    [2017-01-28 02:52:00 -0500] info [backup] Queuing daily backup copy for transport
    [2017-01-28 02:52:00 -0500] info [backup] Queuing transport of file: /backup/2017-01-27/accounts/REMOVE BY ME..tar.gz
    [2017-01-28 02:52:02 -0500] info [backup] Queuing transport reporter
    [2017-01-28 02:52:02 -0500] info [backup] Completed at Sat Jan 28 02:52:02 2017
    [2017-01-28 02:52:02 -0500] info [backup] Final state is Backup::PartialFailure (0)
    [2017-01-28 02:52:05 -0500] info [backup] Sent Backup::PartialFailure notification.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    The output you provided shows a partial failure, which will in-fact prevent backup pruning. You can find the thread on this topic at:

    Backup pruning behavior in cPanel 60

    Thank you.
     
Loading...

Share This Page