mirror of
https://github.com/urbit/shrub.git
synced 2025-01-03 01:54:43 +03:00
add ability to restore from snapshot on-demand
This commit is contained in:
parent
5b192b7a65
commit
85d4328613
16
mar/snap.hoon
Normal file
16
mar/snap.hoon
Normal 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
|
||||
--
|
@ -1281,6 +1281,7 @@
|
||||
$perm `%c
|
||||
$rule `%e
|
||||
$serv `%e
|
||||
$snap `%j
|
||||
$them `%e
|
||||
$wait `%b
|
||||
$want `%a
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user