One of the common operations to perform within a migration is to move files (assets) between the old instance and the new one.
## Semi-automated process to copy files from OKD3 to OKD4
For semi-automated migrations to app-catalogue, one can use this script from paas-migration: <https://gitlab.cern.ch/paas-tools/paas-migration/-/tree/master/migration/rsync-pvc-contents.sh>
See example usage in <https://gitlab.cern.ch/paas-tools/paas-migration/-/tree/master/migration/migrate-nexus.sh>
## Manual process to copy files from OpenShift 3 to OKD4
In brief, this can be easily done by provisioning a temporary pod, mount both (or several, depending the needs) volumes, and copy files over.
In the following example, let's copy files from an instance in OKD3 to OKD4. Note that this procedure can be also applied to OKD4 -> OKD4 if needed.
...
...
@@ -9,8 +17,6 @@ In the following example, let's copy files from an instance in OKD3 to OKD4. Not
!!! info
To perform such operations, the performer user must belong to the `openshift-admins` e-group, having administrator permissions to the targeted clusters. As a consequence of belonging to the `openshift-admins` e-group, the performer user will have also access to the Openstack projects, also needed to fetch the appropriate access keys, etc.