{
  "schema_version": 2,
  "id": "commands/sync",
  "title": "SYNC",
  "url": "https://redis.io/docs/latest/commands/sync/",
  "summary": "An internal command used in replication.",
  "since": "1.0.0",
  "tags": [
    "docs",
    "develop",
    "stack",
    "oss",
    "rs",
    "rc",
    "oss",
    "kubernetes",
    "clients"
  ],
  "last_updated": "2026-09-18T09:48:09+01:00",
  "page_type": "content",
  "content_hash": "d9d4dd33597866203675cc81b6cb09f6bac090664fb2ccde5810e13cd294dadb",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Initiates a replication stream from the master.\n\nThe `SYNC` command is called by Redis replicas for initiating a replication\nstream from the master. It has been replaced in newer versions of Redis by\n [`PSYNC`](https://redis.io/docs/latest/commands/psync).\n\nFor more information about replication in Redis please check the\n[replication page](https://redis.io/docs/latest/operate/oss_and_stack/management/replication)."
    },
    {
      "id": "redis-software-and-redis-cloud-compatibility",
      "title": "Redis Software and Redis Cloud compatibility",
      "role": "content",
      "text": "| Redis<br />Software | Redis<br />Cloud | <span style=\"min-width: 9em; display: table-cell\">Notes</span> |\n|:----------------------|:-----------------|:------|\n| <span title=\"Not supported\">&#x274c; Standard</span><br /><span title=\"Not supported\"><nobr>&#x274c; Active-Active</nobr></span> | <span title=\"Not supported\">&#x274c; Standard</span><br /><span title=\"Not supported\"><nobr>&#x274c; Active-Active</nobr></span> |  |"
    },
    {
      "id": "return-information",
      "title": "Return information",
      "role": "returns",
      "text": "**RESP2:**\n\n**Non-standard return value**, a bulk transfer of the data followed by `PING` and write requests from the master.\n\n**RESP3:**\n\n**Non-standard return value**, a bulk transfer of the data followed by `PING` and write requests from the master."
    }
  ],
  "examples": []
}
