UP | HOME

dotman

dotman is a utility for snapshotting and restoring dotfiles.

Storage

While it could be backed by SQLite, I think it makes more sense to just have a text file with a Lisp list. I'll need to figure out how to format it.

Components

file-header

name
the basename(3) of the file's path.
mod-time
when the file was last modified.
path
the path to this file
(optional) hash
the blake2 digest of the file.

snapshot

A snapshot is a record of a file as it exists in the manifest.

header
as above.
target-path
where the file should go.
snapshot-path
where snapshot is stored.

real-file

header
a file header (as described above).
contents
the file contents, suitable for writing to disk.

manifest

The manifest is a list of =snapshot=s.

Tasks [/]

  • [ ] Write a basic overview of the pieces.