Disable Automated Backups with wp-config Hardcoded Constant?
-
Hi folks,
This might be a feature request. I’m hoping there’s a way to disable automated UpdraftPlus backups through a hardcoded constant which can be placed in wp-config.php.
Something like define(‘DISABLE_AUTO_BACKUPS’, true). I cannot find something like this at this stage.
I’m wondering if I could achieve something similar by using UPDRAFT_DEFAULT_UPLOADS_EXCLUDE and UPDRAFT_DEFAULT_OTHERS_EXCLUDE to exclude every folder that is backed up.
My use case is that I build WordPress websites with a staging site and sometimes for whatever reason I need to export the database from the live site and import it to the staging site. I want automated backups enabled on the live server but disabled on the staging server to save disk space. Obviously I can disable automated backups in WP Admin but this must be re-disabled on the staging site on every import. It’d be great to not have to do that.
I think many people would have a similar situation so this feature would be well received. Keen to hear your thoughts.
Cheers,
James
- The topic ‘Disable Automated Backups with wp-config Hardcoded Constant?’ is closed to new replies.