Sync lifecycle management every 5 minutes

Recipe ToolsMarketingDeveloper ToolAPI Integration

What it does

When the clock triggers every 5 minutes, this automation exports a package from the source folder, waits for completion, and imports it to a destination folder. Someone can monitor changes and keep environments in sync without manual steps.

Who it's for

Engineering teams who need to automate package deployments across environments.

How teams use this

Keep staging and production in sync

Export assets from staging every 5 minutes and import them to production so approved changes reach the live environment automatically. The team avoids manual deployments.

Backup assets to a secondary environment

Run the same export and import flow to a backup folder so assets are always recoverable. Only the destination folder ID changes in the configuration.

Filter assets by tag before export

Add a condition to the manifest creation step so only assets tagged as production-ready are exported. This requires setting a tag filter on the manifest payload.

Notify teams when export completes

Include a notification step after the import finishes so the operations team knows the sync succeeded. This requires adding a notification channel and message template.

How it works

  1. Run every 5 minutes. The automation starts on a 5-minute schedule to check for updates in the source folder.
  2. Get folder assets via Rest. Retrieve the list of assets in the source folder using a Rest HTTP request to gather what needs to be exported.
  3. Create export manifest via Rest. Build a manifest that defines which assets to export from the source environment using a Rest HTTP request.
  4. Export package and wait via Rest. Export the package based on the manifest ID using Rest and wait until the export finishes before proceeding.
  5. Import package to destination via Rest. Import the exported package to the destination folder using the folder ID through a Rest HTTP request.