A snapshot is a copy of an environment’s system and home. Copies are APFS clones: they take space only as the environment changes. Taking one stops the environment for a few seconds.
regent snapshot create dev before-upgrade # named by date if you leave the name out
regent snapshot ls
regent snapshot restore dev before-upgrade # changes since are lost
regent snapshot rm dev before-upgradeSnapshots outlive the environment: regent rm keeps them.
Fork
fork creates a new environment as a copy of another: same profile, agents, sharing and
desktop, with its system and home as they are now or as they were in a snapshot.
regent fork dev dev2
regent fork dev experiment --from before-upgradeGive two agents a fork each and compare what they did.