exclude folders from backup in user control panel

psalm91

Verified User
Joined
Sep 20, 2015
Messages
168
Do I need to add a file called
/home/USER/.backup_exclude_paths

in user and then add the directories I do not want backup is done?

How is it done?

I searched in google but could not find it

Thanks
 
It's easy.
Just create the .backup_exclude_paths file in the /home/user/ directory as you said.

Then exclude the directory's you don't want. They are counted from /home/user/ so add like this:
domains/domain.com/public_html/somedir domains/domain.com/public_html/otherdir

If you want to exclude a backup for example the backups directory in the /home/user directory, exclude like this:
backups
no startslash needed, no end slash there either.
 
So adding a line in .backup_exclude_paths
like this

public_html/data/my/files

Will exclude the folder files ?
 
like this

public_html/data/my/files

Will exclude the folder files ?
Probably yes. I'm not sure because used like this, it's a symlink, not a real path. If you only have one domain it might indeed work. I've not tested it this way.

If you have more domains you have to specify the domain. And you can get into trouble using it like this, if you have multiple domains in the account and then change the main domain.
Might nog be an issue if you only have one domain and only keep one domain on that account.

For these reasons I always use the full real path instead of the symlink. But ofcourse you can feel free to do it as you like.
 
Thanks what I want to do is to put this exclude file in the user so yes it involves with that particular domain only
 
Back
Top