For the fastest possible restore what files can be excluded in cpanel rsync backup tool?

WebHostPro

Well-Known Member
PartnerNOC
Jul 28, 2002
1,727
28
328
LA, Costa RIca
cPanel Access Level
Root Administrator
Twitter
I have a customer that is very concerned with the speed of restoring a back up for the rcync backup tool in CPanel. He copies his files to an out of state server so he would like the least amount of files backed up as possible. But of course he wants his site top work normally.

Can you think of any files and folders that we could add to the exclude list to substantially speed up the backup restore process.

For example:

.core files
Anything in the trash folder
maybe the Email storage folders?
Error_log files?

If you could post any ideas and the code to enter into the .exclude file that would be amazingly helpful.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello :)

Core files are already excluded based on the following entry in /usr/local/cpanel/etc/cpbackup-exclude.conf:

Code:
*/core.[0-9]*
However, please keep in mind that if you initiate a Home Directory backup in cPanel (Home >> Backups >> Download a Home Directory Backup), the global and local exclude files will not affect the contents of the backup file. This is documented here:

How to Exclude Files From Backups

Thank you.
 

Infopro

Well-Known Member
May 20, 2003
17,075
525
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
Files that don't change a lot are obvious choices I think. Say he has 4GB of MP3s on his account, he uses the account to back up his music, and he has a website. If the website ran into trouble, he'd want a backup of files and database for it of course. The 4GB of music though, that's not going to be affected by a site issue.

It really depends on what all he's got on the account. The account configuration itself, mail, site files and databases are most important. Everything else is storage for the most part. What he leaves behind depends on what it is.