How to download all files and their previous 5 versions from a RTC project/component
![](http://jazz.net/_images/myphoto/aa67914ded97c4d1766c98f2b1b0b9ac.jpg)
Hi all,
Need some help and advice here?
We have a big RTC project which contains many thousands of files on last 10+ year. Now, I would like to download each file and their previous 5 versions with correct folder structure. If possible, I would like to preserve the checkin timestamp of the files too.
Thanks.
One answer
![](http://jazz.net/_images/myphoto/aa67914ded97c4d1766c98f2b1b0b9ac.jpg)
Download to do what? What are 5 previous versions considering branches?
Here the options I am aware of:
- Create the repository workspace/stream that select the version you want.
- Create an Eclipse workspace/sandbox and load the files of the repository workspace.
- Use the scm command line to load the file version you want.
- Use the API e.g. see https://github.com/jazz-community/ewm-scm-utils to download the files
-
In the current version there is a command to export all versions for a component, not sure if it is a repotools command or in the SCM command line.
Comments
![](http://jazz.net/_images/myphoto/aa67914ded97c4d1766c98f2b1b0b9ac.jpg)
Hi Ralph,
Thanks for your help!
1. We would like to upload those files and their previous 5 version to Sharepoint for a project.
2. The previous 5 versions of a file is not necessary a branch. Just the versions of those word doc, excel and visio that our customers checked in.
3. Regarding the scm command line to load the file version, can I loop each folder and each file, then find out the version information and download each version?