Support » Plugin: BackUpWordPress » How to do exclusions without wildcards?

  • I’m trying to exclude a particular directory from backup, by use of the HMBKP_EXCLUDE key in wp-config. The problem I’m running into is that when I specify something, e.g.

    define( ‘HMBKP_EXCLUDE’, ‘/dir/’ );

    BackupWordPress excludes all directories that have dir somewhere in the title. It’s as if it’s really doing *dir*. How can I specify an exclusion that means just the directory titled ‘dir’?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Assuming this is on linux, try defining as
    ‘./dir/’

    also try defining it as ‘dir’

    you can also try ‘./dir/.’

    • This reply was modified 2 years, 8 months ago by aetool.

    Thanks. I tried it, but it didn’t work. It doesn’t exclude the directory at all.

    I had another idea which seems in the right direction, but also isn’t working: I put in my exclude as a regular expression with start and end characters:

    define( ‘HMBKP_EXCLUDE’, ‘^dir$’ );

    This had the positive effect of showing that directory as “excluded” in the WordPress interface, but even though BackupWordPress shows it as excluded, it isn’t. It still gets backed up.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to do exclusions without wildcards?’ is closed to new replies.