BackUpWordPress – Exclude Dynamic Backup Folders

Home Forums BulletProof Security Pro BackUpWordPress – Exclude Dynamic Backup Folders

This topic contains 4 replies, has 2 voices, and was last updated by  AITpro Admin 5 years, 7 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #13327

    Tony Payne
    Participant

    Thw backupwordpress plugin (which I highly recommend) used to create a static folder, but now the folder name includes a string that sometimes changes, for example wp-content/backupwordpress-12755e2451-backups.

    The folder sits in wp-content and I want to exclude it using Exclude Dynamic Folders, however as far as I can tell this does not allow a wildcard, so should the folder name change, my backups will get included.

    Is excluding these and monitoring the folder name for changes the best way to go, or should I exclude these from autorestore another way?

    Since the files are all (except 2) .zip, I guess I could exclude ALL zip files.

    #13329

    AITpro Admin
    Keymaster

    That folder name should logically only be randomly generated when the backup folder is first created.  I don’t think that folder name would change, at least all of the other backup plugins don’t do that.  They generate a unique/random folder name and that folder name stays the same.

    Regular Expressions code (wildcards) canNOT be used in ARQ exclude rules.  The folder name/path needs to be exact due to the way these checks need to be done/required by PHP rules in general for the code that is used to do these checks.

    The exclude rule would be:  backupwordpress-12755e2451-backups

    Another and probably better option would be to change the path in BackUpWordPress options/settings and have the backups be stored under the /bps-backup folder.  The /bps-backup folder is excluded by default and the /bps-backup folder is already protected with Deny All .htaccess file protection.  Only you can access the /bps-backup folder and no one else.  You would NOT need to create an ARQ Exclude rule since the /bps-backup folder is already excluded from being checked by ARQ by default.

    Create a folder named:  /website-backups/ under the /bps-backup folder

    Change the BackUpWordPress options/settings backup folder path to this folder path.

    Example:  /bps-backup/website-backups/ your backups would be stored here

    #13360

    Tony Payne
    Participant

    Hmmm hadn’t thought of changing the path, thanks for that.  A much better idea. Simple is always good.

    #13362

    Tony Payne
    Participant

    I tried creating a backup folder within /bps-backup and changed the backup location in backupwordpress, but my backups failed.

    After a lot of trial and error wondering why the backups kept failing, it looks like BPS is removing the backup folder, even though Cron is turned off for the Autorestore.  I’m not getting any messages on the dashboard to say anything is in Quarantine.  Strange…

    #13363

    AITpro Admin
    Keymaster

    BPS does not remove/delete folders and only moves, deletes files.  Something else that you have installed on this site must be doing that.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.