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.
sitectl isle sync fcrepo
Aliases: database, db
FlagDefaultDescription
--backup-dir/tmp/sitectl-isle-jobs/fcrepo-db-backupDirectory on the source host used to cache backup artifacts.
--freshfalseAlways take a fresh backup instead of reusing one from today.
--sourceSource sitectl context.
--targetTarget sitectl context.
--yolofalseSkip the confirmation prompt before importing.

Typical workflow

Pull fcrepo from production to a local context:
sitectl isle sync fcrepo --source prod --target local
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.