You can backup files based on a regular expression. This is useful when you want to backup specific files from different directories with some kind of pattern in their path.

On the node modify page you will see the following boxes where you can add rules based on regular expression and glob pattern.

Include Rules for Website Backup

Using Regular Expression - Regex

(.*)\/public_html\/wp-content\/wpvividbackups\/.*zip$

Include all the zip files under wpvividbackups directory. This rule will match the following directory structures

  • user1/public_html/wp-content/wpvividbackups/backup-1.zip

  • user2/public_html/wp-content/wpvividbackups/backup-2.zip

Using Glob Pattern

*/public_html/wp-content/wpvividbackups/*.zip

Include all the zip files under wpvividbackups directory. This rule will match the following directory structures

  • user1/public_html/wp-content/wpvividbackups/backup-1.zip

  • user2/public_html/wp-content/wpvividbackups/backup-2.zip

Did this answer your question?