InMotion Hosting Support Center

How to exclude files from backup?

Category: Cpanel

n/a Points
2013-11-28 3:45 am EST

Hits: 3,726
I'd like to back up my home directory but exclude a couple of massive video files which I don't need to back up. Otherwise my back up file will be unnecessarily big and take much time to download. Is this possible?

You must login before you can ask a follow up question.

You must login before you can submit an answer.



9,968 Points
2013-11-29 1:44 pm EST
Hello, and thanks for the great question!

If you'd like to backup your account, but exclude certain files or directories, this can be done with a cpbackup-exclude.conf file placed inside your home directory such as /home/userna5.

It's important to note, that this will only exclude files when you are doing a Full Backup. Either from the Backups tool under Files, and clicking on Download or Generate a Full Website Backup. Or when using the Backup Wizard, and clicking on Full Backup -->, and then Generate Backup.

If you you just click on Home Directory to download your /home/userna5/public_html/ files, the exclude file will be ignored and your large movie files will still download.

Also keep in mind that as this would be a Full Backup, you probably want to exclude some other directories such as your mail if you're storing a lot on the server. That way you don't have excessive redundant backups on your account, or have to spend longer times downloading files to your computer.

So in your case, I'd probably recommend a cpbackup-exclude.conf file something along the lines of this:


The files I highlighted in red would be how you'd want to exclude them one by one. Or as you can see above those, if you want to exclude all the files from a directory, use an asterisk * after the directory.

If you have a very large account though, you'd more than likely instead want to select certain files specifically to archive with a cronjob. Then connect via FTP to your account to retrieve that backup for safe keeping.

I'll try to update this question with some guides, as it seem we don't have any written in our support center regarding this. Thanks again for the question and let us know if you had any others!

- Jacob

You must login before you can post a comment about this answer.

Like this Question?

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Need more Help?

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!