timmyomahony / craft-remote-sync

Sync your database and assets across Craft environments using a remote destination like AWS S3
https://plugins.craftcms.com/remote-sync
Other
12 stars 4 forks source link

Configuration To Disable "Pull & Restore" #62

Open shennyg opened 6 months ago

shennyg commented 6 months ago

I'm on Craft 3 and this plugin v1.4.0. I'm looking to prevent the ability to restore on an environment basis.

For example I'd like to be able to Push the DB from production and ensure we never "Pull & Restore" from production. It would prevent accidentally restoring on the wrong ENV.

I'm imagining a new Lightswitch setting that is named something like "Prevent Pull & Restore" and it's defaulted to false and configurable with a ENV variable. Thanks!

I could see this expanding to disabling Push and Delete Databases and similar for the Volumes feature but I don't need any of those for now 😄

timmyomahony commented 5 months ago

Interesting, sounds like a good idea. I'll look into adding 👍🏻