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.

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:
    2
    Trophy Points:
    38
    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:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. NovemberRain

    NovemberRain Well-Known Member

    Joined:
    Sep 24, 2003
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    6
    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:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    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!
     
  5. NovemberRain

    NovemberRain Well-Known Member

    Joined:
    Sep 24, 2003
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    6
    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:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    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. :)
     
Loading...

Share This Page