Skip to content
Dolsy Smith edited this page Feb 27, 2026 · 2 revisions

Prepping the source instance

  1. Attach the EBS volume to the EC2 instance (AWS console)
  2. Mount the volume
    • lsblk to identify the volume. (Assuming xvde is the volume name in what follows)
    • sudo mkfs -t xfs /dev/xvde (If using a new volume)
    • sudo mkdir /data/migration (Mount point)
    • sudo mount /dev/xvde /data/migration (Mount volume)
  3. Clone migration tools repo
    • git clone https://github.com/gwu-libraries/fcrepo_migration_tools.git
  4. Install Java 11, create export directory, set permissions
    • cd fcrepo_migration_tools
    • bash migrate.sh install
  5. Run initial export (this exports everything at the rest/prod endpoint, skipping audit files)
    • tmux
    • bash migrate.sh export
    • [crtl-b-d to detach terminal session
    • monitor Fedora Docker logs for progress
  6. Finish export, removing audit paths
    • bash ./migrate.sh export_rest
    • docker build -t fcrepo_pytools -f Dockerfile-pytools .
    • docker run --rm -v /data/migration/fedora-4.7.5-export:/data fcrepo_pytools remove-audits --ttl /data/rest.ttl

Clone this wiki locally