These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Backup | Files to exclude from each domain on the new forum.
Hi, I would like to exclude a folder for a single domain. It is possible?
Example: domains/domain.xx/public_html/folder
I tried but gives error.
I need this because my soto all sites on Wordpress and I would like to exclude the folder of images as a single site occupies a lot of space but if I enter the path: /public_html/wp-content/uploads It will exclude all the photos of all my sites.
Thank you.
I tried different methods and this worked perfectly. Please hit "Like" if it works for you as well.
Here is a solution:
Case I: Single Directory Exclude a directory from backups:
/home/example/public_html/docs/
Then syntax in "Files to exclude from each domain" should be:
public_html/docs
Case II: Multiple Directories Exclude multiple directories from backups:
/home/example/public_html/docs/
/home/example/public_html/var/
/home/example/domains/testbackups.example.com/public_html/media/cache/
Then syntax in "Files to exclude from each domain" should be:
public_html/docs
public_html/var
public_html/media/cache
Case III: Exclude file extensions
Exclude .exe .tar .tar.gz :
Then syntax in "Files to exclude from each domain" should be:
*.exe
*.tar
*.tar.gz
Case IV: All above cases at once
public_html/docs
public_html/var
public_html/media/cache
*.exe
*.tar
*.tar.gz
Note: These exclude files/directories are applicable globally for all websites/subdomains included in the backups. If you want to exclude the files/directories for website specific then you need to create schedule different backups for each domain.