Migrating data in increments
For large migrations, you can plan ahead to migrate the
data in small increments. Use the
of the export command.
When you export a large amount of data, you can identify subdirectories under the export root and then export and import them separately. At the end, you export and import the root, and then you can specify the
About this task
--prevDirsoption to exclude previously exported files from your current export. The syntax of the
> ccc export ccase -d <intermediate data directory> -i <View-relative root path to export> --prevDirs <space-separated previously exported data path> --prevDirsFile <path to a text file that contains previously exported data path> ...
- Export the subdirectories. For example, if the directory
is M:\aView\aVOB\aRoot, you can identify the
subdirectories to export to:
> ccc export ccase -d C:\data\sub1 -i M:\aView\aVOB\aRoot\sub1 > ccc export ccase -d C:\data\sub2 -i M:\aView\aVOB\aRoot\sub2 > ccc export ccase -d C:\data\sub3 -i M:\aView\aVOB\aRoot\sub3
- Then, export the root using the
> ccc export ccase -d C:\data\aRoot -i M:\aView\aVOB\aRoot --prevDirs C:\data\sub1 C:\data\sub2 C:\data\sub3
The export and import of the root is divided to four operations, and all commands finish in a reasonable amount of time. You can also use the
--prevDirsFileoptions when you have additional check-in versions to migrate at the same root, or when you have additional Rational® ClearCase® views to migrate.
When you run the import commands, they run in the same order as you exported them.