qff
qff

Reputation: 5912

How do I create a backup of a remote Redis instance?

I'd like to make a backup of the data in a remote Redis instance. But I do not have SSH access to the server that the Redis instance lives on. (Otherwise, I could copy out the .aof or .rdb-file)

How do I create a backup in this case?

Upvotes: 6

Views: 4527

Answers (1)

qff
qff

Reputation: 5912

You can use the --rdb <filename> argument to the redis-cli command-line tool:

redis-cli -u 'redis://<username>:<password>@<hostname>:<port>' --rdb your_backup.rdb

Reference: https://redis.io/topics/rediscli#remote-backups-of-rdb-files

Upvotes: 12

Related Questions