SYNC

Since 1.1.0Server

Syntax

SYNC
  • Flags: admin
  • ACL categories: @admin, @dangerous, @server, @slow
  • Arity: 1

The original replication handshake: a replica sends it to get a snapshot of the master's data, then every write that follows, with no way to resume after a broken link. Replicas use PSYNC instead, which can continue from where they were when the link drops, so SYNC is kept only for old tools.

It turns the connection that sends it into a replica link: what comes back is a snapshot in RDB form, then the stream of writes, not a reply. Replication describes how a replica catches up.

Reply

A bulk transfer of the snapshot, then the replication stream.