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 its content 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 such as v01, v02, v03 for major version changes and a second level for minor changes, like v01, v01_1, v02_6. 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]
Some examples:
- 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, for example, 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 and Google Docs and create a new version when appropriate by accepting all changes and incrementing the version number.
- Consider using version control software such as 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, for example, 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 webpages. See the University's digital standards service manual for further information.