Skip to main content

migrate_conduit_media

Function migrate_conduit_media 

Source
pub(super) async fn migrate_conduit_media(services: &Services) -> Result
Expand description

Imports the original media files of a Conduit database, re-uploading each servernamemediaid_metadata entry through media.create. A malformed entry or a missing source file is logged and skipped, but a source storage provider that stays unreachable aborts the import: nothing is committed in a way that needs cleanup, so the operator can fix the provider and restart to resume from the beginning (re-importing an already-copied original is idempotent).