Skip to main content

recyclarr sync

Usage​

recyclarr sync [service] [OPTIONS]

Description​

Synchronizes the guide with various services. See Sync Behavior for details on how sync works and how to interpret its output.

The command starts a sync job on a Recyclarr server, waits for it to finish, and shows the results. The server syncs the configuration it has loaded. A persistent server loads edits to your configuration files once a minute, so a sync started right after an edit can still use the previous configuration. See Configuration Changes.

The command exits with code 1 when the sync fails outright or the CLI cannot start the job. Otherwise it exits with code 0, including when the sync was partial (some items synced and some did not).

Arguments​

[service]​

An optional positional argument that indicates the specific service type to sync. If not specified, all service types are synced. Valid values for this argument are:

  • radarr
  • sonarr

Command Line Examples​

# Sync both Radarr and Sonarr
recyclarr sync

# Sync just Radarr
recyclarr sync radarr

# Sync just Sonarr
recyclarr sync sonarr

Options​

-p|--preview​

Instructs Recyclarr to perform all the work it normally would do during a sync, except it won't update your actual instance configuration. This gives you the opportunity to see what Recyclarr would do without actually committing those changes.

Note that, in this mode, Recyclarr will still make API calls to services but only to fetch data; it will never invoke the API to make actual changes.

The output is one tree per instance. The instance name heads each tree, followed by every pipeline and the resources it would change. A green + marks a resource to create, a yellow ~ one to update, and a red - one to delete. Updated values show the current value, an arrow, and the new value. A line after the last instance totals the changes across all instances.

-i|--instance​

One or more instance names to sync. Instance names are the names you give each of your instances in your YAML configuration files. In the example recyclarr.yml below, movies and series are instance names:

radarr:
movies:
base_url: http://localhost:7878
api_key: abc123
sonarr:
series:
base_url: http://localhost:8989
api_key: def456
info

The [service] argument influences the behavior of instance-based syncing. If you specify a specific service to sync, such as radarr, then the --instance option will only look at instances for that specific service type (in this example, it will only look at Radarr instances).

Command Line Examples​

# Sync instances named `movies` and `series` across both Radarr and Sonarr
recyclarr sync -i movies -i series

# Sync an instance named 'series' only if they are in Sonarr
recyclarr sync sonarr --instance series