Scheduled Backups exclusion list syntax

5 posts / 0 new
Last post
#1 Tue, 04/26/2011 - 21:25
eddieb

Scheduled Backups exclusion list syntax

Hello

would the syntax below work to exclude all directories listed from being included in a backup?

  • */stats
  • */cache
  • */components/com_sef/cache
  • */components/com_xmap/cache
  • */wp-content/cache/supercache
  • */wp-content/w3tc
  • */wp-content/backup
Tue, 04/26/2011 - 22:17
andreychek

Howdy,

You can click the "Files to exclude from each domain" text to get a popup with an explanation as to how all that works... but basically, you'd want to list directory names, relative to the homedir. That would look something like this:

public_html/stats
public_html/cache
...
Wed, 04/27/2011 - 05:46 (Reply to #2)
eddieb

thanks, i did see the instructions. so no wildcards allowed?

Wed, 04/27/2011 - 09:21
andreychek

Unfortunately, I don't think it supports wildcards.

Though, it wouldn't hurt to try some experimenting, maybe we'd both be pleasantly surprised :-)

-Eric

Sat, 06/16/2018 - 05:54
pragma

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.

Topic locked