helloswish / craft-db-dump

A simple way to perform database backups in Craft CMS.
MIT License
4 stars 1 forks source link

Add console command to run locally from server #3

Closed jrrdnx closed 2 years ago

jrrdnx commented 2 years ago

Feature Request

Would it be possible to add a console command (similar to Craft's own db/backup command) to run this locally from the server instead of wget or curl request?

One particular site I'd like to use this on is restricted via Client Certificates, so there's no public web access. However, running ./craft db/backup works fine so if this plugin could be triggered via the console to achieve the same result this would be ideal for my situation.

chadcrowell commented 2 years ago

I'll add it to my list but not sure when I'll have time to look at it. I've never done anything like a console command so I am not sure how to do it but will take a look when I have a chance.

jrrdnx commented 2 years ago

No problem. I've done a couple so would be happy to put together a pull request if that works.

chadcrowell commented 2 years ago

Sure that would certainly help.

chadcrowell commented 2 years ago

Complete via pull request #4 thanks to @jrrdnx