Where do you set "ignore" varibles for incramental backup?

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
41
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
If the file is not on a set account but the global server, you can set the files and folders in /etc/cpbackup-exclude.conf file. Otherwise, you can put or create the file in /home/username/cpbackup-exclude.conf for files and folders on individual accounts. Wildcards can be used in the file or folder name or path.
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,544
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
I use daily incremental backups but some files I need to ignore like old spam ect.. Where do I put the ignore file and what is the name for this so cpanel's incremental backup will ignore what I put in the file?

Thanks!
If the file is not on a set account but the global server, you can set the files and folders in /etc/cpbackup-exclude.conf file. Otherwise, you can put or create the file in /home/username/cpbackup-exclude.conf for files and folders on individual accounts. Wildcards can be used in the file or folder name or path.
Adding to what cPanelTristan has mentioned, we have the following documentation that details usage of the described feature: Excluding Files from Backup Using cpbackup-exclude.conf

During testing I found the following entries will exclude the ".Junk", ".spam", and ".Trash" directories within an e-mail account; via IMAP the folders may appear simply as "Junk", "spam", and "Trash", but on the filesystem they are prefixed with a period:
Code:
# cat ~user/cpbackup-exclude.conf
*/.Junk
*/.spam
*/.Trash