scripsdata-ui snapshot
Add a snapshot command to scripts/data-ui, with 4 subcommands:
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
<col class="org-left" />
<col class="org-left" />
</colgroup>
<thead>
<tr>
<th scope="col" class="org-left">Command</th>
<th scope="col" class="org-left">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="org-left"><code>scripts/data-ui snapshot save [name]</code></td>
<td class="org-left">create a snapshot</td>
</tr>
<tr>
<td class="org-left"><code>scripts/data-ui snapshot restore [name]</code></td>
<td class="org-left">restore snashot</td>
</tr>
<tr>
<td class="org-left"><code>scripts/data-ui snapshot list</code></td>
<td class="org-left">list a snapshot</td>
</tr>
<tr>
<td class="org-left"><code>scripts/data-ui snapshot drop [name]</code></td>
<td class="org-left">delete a snapshot</td>
</tr>
</tbody>
</table>
Thus, for example, if you're running model-1, and you want to work on something else without losing the model-1 data, you could:
- Create a snapshot:
scripts/data-ui snapshot save - Switch to another model in Lisp:
(set-model "model-2") - Work with the other model for a while
- Switch back to the original model:
(set-model "model-1") - Restore the original model's data:
scripts/data-ui snapshot restore
If you need multiple snapshots of the same model, just pass the snapshot name you want to use:
scripts/data-ui snapshot save modelbank-1scripts/data-ui snapshot save todos-2
See scripts/README.md.
Branch: snapshots-named-deploys
- Slot
- 23300
- Status
- 60 Done
- Tags
- mvp, utility
- Contributors
- Donnie