-
Notifications
You must be signed in to change notification settings - Fork 24
Fedora 3 to Fedora 4 Migration
Below are the steps to audit the Fedora 3 to Fedora 4 migration. The basic workflow is as follow:
- Gather the list of all objects in the Fedora 3 repo and store them in a MySQL table.
- Migrate the data.
- Loop through all the Fedora 3 objects in the MySQL table and make sure that (1) they exist in the Fedora 4 repo and (2) their model (Batch, Collection, GenericFile) matches with their model in the Fedora 3 repo.
To gather information about all the objects in the Fedora 3 repository run the following rake task:
RAILS_ENV=production bundle exec rake premigrate:f3_audit["/path/to/fedora3.yml"]
Once this rake task completes, you can see the information gathered about the Fedora 3 objects by querying MySQL directly:
mysql -umysql_user -pmysql_pwd -hmysql_host
select * from migrate_audits;
To migrate the data [TODO: document this step]
After the Fedora 3 data has been migrated to a Fedora 4 repository, run the following rake task:
RAILS_ENV=production bundle exec rake aftermigrate:f4_audit
This task will make sure every Fedora 3 object listed in the MySQL table exists in the Fedora 4 repo and that the model for the object in Fedora 4 matches the model that the object had in Fedora 3. This task will update the MySQL table with the status of the audit for each object. You can see the results by querying the table as suggested above.