ashos / ashos

The immutable/mutable meta-distribution (universal bootstrapper)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clone entire tree?

xaqbr opened this issue · comments

is there a way to clone entire trees instead of single snapshots for backup when installing packages? or is there a way to swap snapshots so if something goes wrong when updating the parent tree, i can swap it in-place with the clone backup?

commented
  1. This is not currently implemented, but it is a good idea and I think it'd be simple! I can implement it after the next update.
  2. This is theoretically possible, but it might have bad consequences for child nodes/snapshots if a parent and corrupt child node are swapped. Let's converse about it.

Well, it's implemented now! To clone an entire tree use 'ast clone-tree' and then the number of the snapshot to clone recursively

NOTE: in order to get the updated version of ast, use 'ast ast-sync'