Here's what I'd like to do: I have some directories that I need to have separate copies of, but these directories are 2+ GB so simply copying the directory several times seems inefficient. 90% of these directories are identical, and only a few files change.
I'd like to setup some sort of system that acts like a
mount -bind or a symlink in the sense that the files/directories are accessible without multiple copies, but (here's the weird part) I'd like to have one main copy act as a sort of 'template' in the sense that it is mounted but it is not changed. When a file is changed, it is stored on the disk like normal, but the updated version is read instead of the template version.
Pretty much, a directory's contents are symlinked until a file is modified, at that point the link is broken and the new file written to the disk.
I'm not really sure where to look, or what to google to get ideas on how to do this.