Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created January 10, 2019 02:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahamc/658ad0649e826459a70165f3830079cb to your computer and use it in GitHub Desktop.
Save grahamc/658ad0649e826459a70165f3830079cb to your computer and use it in GitHub Desktop.
1. have a "golden" HOME store path
2. have a ZFS dataset at $HOME (called homedir in here)
3. have a "homedir@pristine" snapshot which is completely empty
on every reboot:
1. snapshot "homedir" to "homedir@YYYY-MM-DD-HH-MM-SS"
2. revert "homedir" to "homedir@pristine"
3. copy the golden HOME store path to $HOME
... prune homedir@YYY... snapshots regularly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment