Snapshot of wagoodman/tar-overlay: 19★, Shell. A shell script which creates and manages named overlayfs mounts backed by the contents from tar files.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
A shell script which creates and manages named overlayfs mounts backed by the contents from tar files.
Note: this is a work in progress, so it is not stable yet.
Example
Given a tar with a set of files, create two independent scratch 'instances' where you can add, modify,
and delete files that can be reverted on command:
The motivation for this was to take a read-only directory tree and make several
read-write 'instances' of that directory tree, where changes made in each instance would
not affect files in the other instances. Furthermore, there were benefits with
having the functionality to restore any instance to the original directory tree,
as if no modifications were done. This could all be done by making copies of the
tar contents for each instance, however, some of these directory trees were 1 GB
or more in size and only a few files are modified between all of the instances.
Docker provides almost the same functionality via dockerfiles, however, I am
not using docker for this project... so building and managing images this way seemed
awkward if I wasn't planning to use docker for containers. Instead, since overlayfs
has been integrated into the kernel and a wrapper script seemed simple enough to
make, tar-overlay was born!
Usage
tar-overlay [command] [options]
Image commands:
install-image <tar-file> Take the given tar and make it available as in immutable image.
list-images List all known images.
Overlay Commands:
create <name> <image-name> Instantiate an image (make an instance).
list List image instantiations.
mount <name> Mount an instantiation for use.
mount-all Mount all overlays.
info <name> Show all information regardin the given overlay name.
rename <name> <new name> Rename the given instantiation.
reset <name> Undo all changes made to original image.
show-changes <name> Show a tree of all modified files
status <name> Shows if the given overlay is mounted.
umount <name> Unmount an instantiation.
umount-all Unmount all overlays.
Future Commands:
rename-image <iamge-name> Rename the given image.
delete-image <image-name> Delete the given image.
mount-image Mounts an image directly (not advised).
umount-image Unmounts a directly mounted image.
delete <name> Delete the given instantiation.
TopGit's metadata for wagoodman/tar-overlay does not record a license. Most public repositories on GitHub ARE open source, but the exact terms vary — verify by opening the LICENSE file directly.
What is wagoodman/tar-overlay?
wagoodman/tar-overlay (wagoodman/tar-overlay) is a Shell project on GitHub. From the project's own README: A shell script which creates and manages named overlayfs mounts backed by the contents from tar files.
Where do I read more about wagoodman/tar-overlay?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/wagoodman/tar-overlay is the definitive source.
Read full README in the tab above.
Is tar-overlay worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of tar-overlay.