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.

How to avoid backing up these type of files

Discussion in 'Data Protection' started by DWHS.net, Jan 28, 2015.

  1. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    I would love to find a way to avoid cpanel back up to not back up .tar.gz back ups files that have been sitting on an account.

    The files look like this:

    backup-1.26.2014_20-19-49_username.tar.gz

    Is there a way to not back these up but still back up other .tar.gz files.

    I use incremental backups for this server.
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Yes, as mentioned in the previous post, you can exclude certain files from backups, and even use wildcards to exclude certain file names or file types:

    Backup Exclusions

    Thank you.
     
  4. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Thanks, I know about being able to block files. Sorry I should of mentioned that.

    I more specifically trying to do this file type and am trying to figure out how.

    backup-1.26.2014_20-19-49_username.tar.gz

    Can I block anything that has the word back up in it and is a tar.gz?

    *-1.26.2014_20-19-49_*.tar.gz

    It seems like I can only do:

    *.tar.gz

    Which would block all .tar.gz files.

    Maybe I can block just files are that are certain size?

    For example all .tar.gz files that are over 20 mb
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You can't exclude files by their size, but you are welcome to submit a feature request for that via:

    Submit A Feature Request

    You could block all files that start with "backup-" in the account's home directory.

    Thank you.
     
  6. jortiz565

    jortiz565 Active Member

    Joined:
    Oct 31, 2012
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Hello,

    I have a question about excluding some files in the new backup system.
    If we want to avoid for example all files in home with extension .gz.tar we just add these line?:

    *.tar.gz
    ?

    If we want to block specific extension inside user his home directory including sub directories we need to use the wildcard? Something like:

    */*.tar.gz

    I'm right?

    Thanks,
    Jonathan
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page