Make snapshot now (quick menu item without any kind of confirmation)
arhak - August 13, 2008 - 15:16
| Project: | Demonstration site (Sandbox / Snapshot) |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | feature request |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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.

#1
Would a special Admin Menu entry leveraging hook_admin_menu() qualify as a solution?
#2
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?
#3
+1
#4
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.