Saving all server-side scripts to file


#1

Hi,

Is it possible to save all the server side-scritps to a file, in order to backup or re-use them?
I think it would be useful that the admin UI provided a button to dump all the scripts configured for all events and services (if possible).

Thanks & regards.


#2

Event scripts are stored in a table called ‘event_script’ and custom scripts are stored in a table called ‘script_config’. You can back them up and export them out of the database.

The packages tab allows you to export scripts as a zip file and there’s an API for package import/ export as well. This is very useful for back up and moving apps, schema, scripts, APIs etc. between DreamFactory instances. More info here http://wiki.dreamfactory.com/DreamFactory/Tutorials/Deployment/Packaging.


#3

QUICK QUESTION - how do you access that table - where is that database located?


#4

Probably in the MySQL DB that comes with DF