Dont include mail files in the backup??

lutronik

Member
Jul 15, 2003
11
1
153
Hello,


Please, I want remove the mail files from global backups, as I do to not include email files, but maintaining passwords for emails, etc ...?

I use: /etc/cpbackup-exclude.conf ???
(for new backup system???)

This work??

mail/*/cur/*
mail/*/new/*

???

I'm trying, but I could not make it work.


Thank You!!

Luiz Passarelli
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello,

Email data is stored in the following location:

/home/$username/mail/$domain/$email-account/

Thus, you would use these lines if you wanted to exclude the "cur" and "new" directories for every email account:

Code:
mail/*/*/cur/*
mail/*/*/new/*
Documentation on excluding files from backups is available at:

How to Exclude Files From Backups - cPanel Knowledge Base - cPanel Documentation

Thanks!