thinkle / gourmet

Gourmet Recipe Manager
GNU General Public License v2.0
338 stars 138 forks source link

Export by command line #755

Open Quantum-cross opened 10 years ago

Quantum-cross commented 10 years ago

It would be nice if there were command line options to export all recipes in a specified format to a specified directory.

This way I could make a nice automated script to export all my recipes to html and then upload them to my home server.

Thanks!

ockham commented 10 years ago

Sounds like a good idea. Our exporting logic is a bit intertwined with threading, so we might need to fiddle that first.

As for the exporting to HTML/uploading to your home server part, have you considered using Gourmet with a MySQL database (instead of the default SQLite flat file)? That way, your web server could connect to the same DB and dynamically display your recipes (e.g. via some PHP script that you'd need to write, or even using our Django-based web plugin found in gourmet/plugins/web_plugin, though it's been admittedly unmaintained for a while...)