#1 By: howtogeek, May 28th, 2013 17:03
Originally published at: http://www.howtogeek.com/163824/it-geek-how-to-keep-files-with-the-same-name-in-sync/
You have most likely heard of services, such as Dropbox, which are used to keep files in sync across multiple machines. However, what if you want to perform this operation on a single machine? That is, keep files which have the same file name in sync across the machine such that when one of the files change, they are all updated.
#2 By: Grant Johnson, May 28th, 2013 18:23
A version control tool like SVN or even CVS works very well for this. You can even automate the updates, only pulling a certain branch or tag, then putting things appropriately in a test or production grouping, allowing you to easily test a particular version, then mark it as ready for production and having it easily distributed, with a single source of truth in the version control server.
#3 By: Jason Faulkner, May 28th, 2013 21:57
I tried a version control system, but for a one man development team this turned out to be extreme overkill. I found that this script (combined with a couple of others I used for archiving releases) works very well when you work on a large number of small development projects.
#4 By: lhamil64, May 29th, 2013 10:30
Couldn't this be solved using symlinks? If you find yourself copying the same file to many different locations (that aren't for backup purposes), you can just make a symlink to the one file.
#5 By: Jason Faulkner, May 29th, 2013 10:44
Interesting idea which I just tried in Visual Studio. Unfortunately, it doesn't work (kept throwing reference errors) - you have a have a full physical copy for the project to be able to use the file.