add ability to restore from snapshot on-demand

This commit is contained in:
Philip Monk 2019-01-15 16:33:17 -08:00
parent 5b192b7a65
commit 85d4328613
No known key found for this signature in database
GPG Key ID: B66E1F02604E44EC
4 changed files with 23 additions and 0 deletions

16
mar/snap.hoon Normal file
View File

@ -0,0 +1,16 @@
::
:::: /hoon/snap/mar
::
=, mimes:html
|_ snap/snapshot:jael
++ grow
|%
++ mime [/application/octet-stream (jam snap)]
--
++ grab
|%
++ noun snapshot:jael
++ mime |=([p=mite:eyre q=octs:eyre] (cue q.q))
--
++ grad %mime
--

View File

@ -1281,6 +1281,7 @@
$perm `%c
$rule `%e
$serv `%e
$snap `%j
$them `%e
$wait `%b
$want `%a

View File

@ -848,6 +848,11 @@
%+ cure hen
[[%meet ship.tac life.tac pass.tac]~ urb]
::
:: restore snapshot
:: [%snap snap=snapshot kick=?]
%snap
(restore-snap hen snap.tac kick.tac)
::
:: XX should be a subscription
:: XX reconcile with .dns.eth
:: request domains

View File

@ -1856,6 +1856,7 @@
[%nuke ~] :: cancel tracker from
[%pubs =ship] :: view public keys
[%meet =ship =life =pass] :: met after breach
[%snap snap=snapshot kick=?] :: load snapshot
[%turf ~] :: view domains
[%vein ~] :: view signing keys
[%vent ~] :: view ethereum events