Skip to main content
Use sync to replicate Fedora Commons content between environments, for example pulling production fcrepo data to a local context for development or testing.

sync fcrepo

Copy the Fcrepo database from a source context to a target context. This backs up the Fcrepo database on the source, transfers the artifact, and imports it into the target. The command asks for confirmation before importing. Pass --yolo to skip the prompt in automation. Use --fresh to always take a new backup rather than reusing one from today.

Typical workflow

Pull fcrepo from production to a local context:
The command backs up fcrepo on the source, transfers the artifact, asks for confirmation, then imports it on the target. Use --yolo to skip the confirmation in CI or automation.