I have a large source code repository on a Linux NFS mount and I'd like to create a shadow copy of that repository such that only files that I write in this shadow repository are modified in my shadow repository. All other files remain symlinks or hardlinks to the master, original repository.

Can this be done with hardlinks on NFS?

I can envision a script where, much like in a version control system, I check out the files that I want to modify from the original, which causes the script to sever the link between master and shadow repositories, creating a copy of the master repository's file that I can then modify. However, I'm sure someone else has created a utility for this and I'm just not aware of the obscure Linux incantations needed to conjure up my solution.

link|improve this question

78% accept rate
feedback

1 Answer

A UnionFS-based setup could work for you. UnionFS lets you merge the NFS read-only with a writable, dynamically growing, loop device powered filesystem.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.