Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Using cpbackup-exclude.conf to skip the already backed up archives tar.gz?

Discussion in 'Data Protection' started by jols, Sep 26, 2012.

  1. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    3
    Trophy Points:
    168
    Some folks do a manual backup, then they leave the big file, eg. backup-9.23.2012_18-55-42_user.tar.gz in their subweb, then later they do another manual backup....

    I'm sure you get where I'm going here, each backup archive expands exponentially in size because it includes a backup, of the previous backup archive, of the previous backup archive, etc. etc. etc.

    So, exactly how do I create an entry to in /etc/cpbackup-exclude.conf that will exclude files like backup-9.23.2012_18-55-42_user.tar.gz from being backed up again and again and again?

    I don't think I want to do something as broad as:

    backup-*

    Thanks much!
     
    #1 jols, Sep 26, 2012
    Last edited: Sep 26, 2012
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,513
    Likes Received:
    424
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. NovemberRain

    NovemberRain Well-Known Member

    Joined:
    Sep 24, 2003
    Messages:
    110
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    İstanbul
    cPanel Access Level:
    Root Administrator
    Re: Using cpbackup-exclude.conf to skip the already backed up archives tar.

    Is it possible to define a default cpbackup-exclude.conf which has the "backup-*" line in it?

    It is not practical to do this for hundreds of accounts manually.
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,513
    Likes Received:
    424
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Re: Using cpbackup-exclude.conf to skip the already backed up archives tar.

    I searched the forums for you, came up with these links:
    http://forums.cpanel.net/f34/cpbackup-exclude-questions-151557.html#post639249

    http://forums.cpanel.net/f49/modifying-cpbackup-script-skip-home-dir-147249.html#post625273

    With some digging off of those you should be able to come up with something I'm sure. :)

    HTH!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. NovemberRain

    NovemberRain Well-Known Member

    Joined:
    Sep 24, 2003
    Messages:
    110
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    İstanbul
    cPanel Access Level:
    Root Administrator
    Re: Using cpbackup-exclude.conf to skip the already backed up archives tar.

    Thank you Infopro :)
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,513
    Likes Received:
    424
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Re: Using cpbackup-exclude.conf to skip the already backed up archives tar.

    You are certainly welcome. :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice