Backing up sites are essential, but not all sites have essential data that need backing up, so you can exclude directories from your site(s), so when you start a manual backup or an automatic backup is run, it will not include the specified directory.

To begin excluding directories, goto the backups tab of the selected site. You’ll be able to see at the bottom of the panel, the backup excludes button.

thebackupspage

The backup excludes panel will expand.

theexludebutotn

There are two exclude locations added by default, .git/ and .svn/ which are hidden folders created by version control software. If you don’t know what these are, don’t worry about them.

In this field you can begin adding the paths to folders you would like to exclude. Example below.

theexcludeexample

Some basic patterns you can use for excludes are:

To exclude a whole directory

For example to exclude your whole wp-content/uploads directory you would enter:

/wp-content/uploads/

Preceding the filepath with a slash will match from your site root. To match any directory, located in root or sub-directories then enter the folder name without a preceding slash, e.g.:

.git/

Will match all .git directories including those in subdirectories.

You can also specify wildcards by adding an asterisk to your search pattern. In this example we’re doing a search for a folder that has anything followed by -cache.

/wp-content/*-cache/

To exclude specific files

Like with directories, you can exclude a single file by specifying it’s full path:

/wp-content/advanced-cache.php

As with directories, ommitting the preceding slash will match all files even in sub-directories. E.g. to exclude all index.html files:

index.html

You can also use wildcards to exclude all files which match a certain pattern. To exclude all .zip files you would do:

*.zip

If you have any issues, please don’t hesitate to contact support at support@wpremote.com.