1. A method for recreating a set of hierarchical files that are present on a source datastore on a target datastore, the set including a parent component and a child component, the method comprising: maintaining a content identifier (ID) for each component of the set of hierarchical files, the content ID being updated when the contents of a corresponding one of the components are modified; copying the child component from the source datastore to the target datastore; comparing the content ID corresponding with the parent component on the source datastore with content IDs corresponding to files present on the target datastore; when a matching content ID is discovered as a result of the comparing, identifying a matching file, the matching file being a file on the target datastore that corresponds to the matching content ID and associating the copied child component with the matching file so that the matching file becomes a new parent component to the copied child component, thereby recreating the set of hierarchical files on the target datastore using the matching file.