It is important to identify and distinguish versions of data files consistently. This ensures that a clear audit trail exists for the development of a data file and the content presented within it and that earlier versions can be identified when needed.
Approaches to expressing file versions
A common approach to expressing data file versions is to use ordinal numbers (v01,v02,v03 etc.) for major version changes and a second level for minor changes (v01, v01_1, v02_6, etc.). This can be combined with other elements such as a date or descriptive label to obtain a structured file name of the form:
[description/date]_[version number]_[status: draft/final/editor], for example:
- SmithInterview_20071007_v01Draft.docx
- 20010128_ILB_CS3_v06_AB.docx
- Image3_1.png
- 20140823_Image3.png
In addition, a version control table or notes within a file can be used to record versions, dates, authors and details of changes to a file.
Good practice for version control in file names
- Avoid confusing, accumulating labels, e.g. revision, final, final2, definitive_copy.
- Record every change irrespective of how minor that change may be.
- Discard or delete obsolete versions whilst retaining the original 'raw' copy.
- Turn on versioning or tracking in collaborative documents and storage utilities such as MS Office applications, Wikis, Google Docs, etc.
- create a new version when appropriate by accepting all changes and incrementing the version number
- Consider using version control software e.g. Git, which is covered by regular Software Carpentry workshops available through PDMS. See managing code for more information.
If you are working collaboratively on data, agree on a common versioning strategy. You could:
- Use software to control the file-editing rights.
- Use versioning or file-sharing software.
- Agree for one team member to merge multiple entries or edits manually, e.g. using the 'compare' functionality in Microsoft Word.
Special file naming conventions exist for files that will be uploaded to any part of the University's website, including group and school web pages. See the University's digital standards service manual for further information.