I can't find the relevant explanation on https://redis.io/topics/rediscli

Comment From: acechef

I read redis-cli --rdb explanation (Transfer an RDB dump from remote server to local file), does it mean that when I execute redis-cli --rdb, the save or bgsave command will not be triggered?

Comment From: oranagra

It doesn't use either SAVE or BGSAVE. It connects as a replica, which causes the server to create a background process that sends an RDB file. So it's somewhat similar to BGSAVE. Note that if you'll enable repl-diskless-sync config on the server, it'll avoid storing the file to the disk, which will make it more efficient.

Comment From: acechef

@oranagra Thanks for answering my question, regarding the repl-diskless-sync parameter, if rdb is disabled, does repl-diskless-sync use Diskless by default?

Comment From: oranagra

@acechef what do you mean by rdb being disabled? are you talking about the save config? (has nothing to do with this one). repl-diskless-sync permits the master to generate an rdb file directly into the socket to the replica (without storing a file on the disk). since redis-cli --rdb behaves as a replica, it can take advantage of that.