Skip to main content

How to avoid backing up these type of files

Comments

6 comments

  • 24x7server
    Hello, You can exclude that file by updating /etc/cpbackup-exclude.conf on your server. Here are the documentation of this topic :
    0
  • cPanelMichael
    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.
    0
  • WebHostPro
    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
    0
  • cPanelMichael
    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.
    0
  • jortiz565
    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
    0
  • cPanelMichael
    Hello, Yes, wildcards are accepted in the cpbackup-exclude.conf file. The examples you provided should work without issue. Thank you.
    0

Please sign in to leave a comment.