Two really excellent programmers have suggested version control software because it does exactly what you are describing. Please don't be intimidated by VCS, it isn't just for the big projects or...