Key differences from asset sync:
You can trigger asset metadata synchronization manually when you need immediate sync for specific assets.
Sync metadata from the media list page:
Select Sync metadata.
The system fetches the latest asset metadata from Acquia DAM and re-applies the configured field mappings to the selected media items.
The acquia-dam:asset-metadata-sync command iterates through all existing media entities of a specified media type and re-applies the configured metadata field mappings. It fetches the current metadata for each asset from the Acquia DAM API and applies the latest configuration.
Run the metadata sync command to re-apply field mappings for a specific media type:
drush acquia-dam:asset-metadata-sync <media_type> [options]You can combine options for more precise control over processing. For example:
drush acquia-dam:asset-metadata-sync acquia_dam_image_asset --resume --limit=200 --batch-size=75This resumes from the last processed position, processes up to 200 items, and processes them in batches of 75.
Options:
--batch-size: Number of media items to process per batch. Default: 50.
--limit: Maximum number of media items to process. Default: 0 (no limit).
--offset: Number of media items to skip before processing. Default: 0.
--resume: Resume from the last processed media ID stored in Drupal state. Default: FALSE.Examples:
# Re-apply metadata mappings to all image assets:
drush acquia-dam:asset-metadata-sync acquia_dam_image_asset
# Process only video assets with a larger batch size:
drush acquia-dam:asset-metadata-sync acquia_dam_video_asset --batch-size=100
# Skip the first 50 items and process the next 100:
drush acquia-dam:asset-metadata-sync acquia_dam_image_asset --limit=100 --offset=50
# Resume processing from the last interrupted position:
drush acquia-dam:asset-metadata-sync acquia_dam_image_asset --resumeIf the command is interrupted (for example, due to a server timeout or manual cancellation), you can resume from the last processed position using the --resume option.
When --resume is enabled:
Example workflow for resuming an interrupted sync:
drush acquia-dam:asset-metadata-sync acquia_dam_image_asset --batch-size=50If the command is interrupted, resume processing:
drush acquia-dam:asset-metadata-sync acquia_dam_image_asset --resume
If this content did not answer your questions, try searching or contacting our support team for further assistance.
If this content did not answer your questions, try searching or contacting our support team for further assistance.