For lazy folks it might be desirable while developing to have an accesible "Take snapshot now" action at hand, because sometimes things are going right and are just about to be messed and for the lazyness of having to open phpmyadmin and export the database a backup is sometimes bypassed just before a new experiment take place.

PS: althought making some changes on production (even previously tested in development) might mess things up.

Comments

smk-ka’s picture

Would a special Admin Menu entry leveraging hook_admin_menu() qualify as a solution?

sun’s picture

Could work. However, we don't really need hook_admin_menu() for this. Simple menu items on admin/demo/dump and admin/demo/reset would be sufficient.

More important is whether we want to overwrite the currently configured default snapshot, or, create new snapshots by using a pre-defined filename pattern and appending a counter or whatever. Personally, I'd say that overwriting/resetting always the same snapshot is not that valuable... Maybe we can also provide both ways?

arhak’s picture

+1

pkej’s picture

It would be nice to have an option to increment the snapshot number for each time; thus with a cron run you could have backup of the database at intervals.

gaurav.kapoor’s picture

Issue summary: View changes
Status: Active » Closed (outdated)