Categorygithub.com/oxio/rediscp
modulepackage
1.0.1
Repository: https://github.com/oxio/rediscp.git
Documentation: pkg.go.dev

# README

= rediscp

Copies keys from one Redis instance to another.

The source and target addresses should be specified in the format redis://[:password]@host:port[/db].

Example: rediscp redis://:srcpass@localhost:6379/0 redis://:targetpass@localhost:6380/1

== Installation

=== go install


go install github.com/oxio/rediscp@latest

=== wget


wget https://github.com/oxio/kv/releases/download/v1.0.0/rediscp chmod +x kv mv kv /usr/local/bin/

=== Usage rediscp <source-addr> <target-addr> [flags]

==== Flags

[cols="1,1"] |=== | -h, --help | help for rediscp

| --ignore-ttl | Weather or not to ignore TTL of keys (default: false)

| -k, --keys string | Keys pattern to copy eg. "foo:*" (default *)

| -r, --replace-existing | Weather or not to replace already existing keys in the target Redis (default: false)

| -s, --skip-existing | Weather or not to skip already existing keys in the target Redis (ignoring BUSYKEY error) (default: false)

| -v, --verbose | Verbose output (default: false) |===

=== Restrictions

The tool is currently not safe to use under high concurrency Redis instances. It should only be used in development environments.

Also the amount of data copied is limited, as all the keys are copied in one single batch.

# Packages

No description provided by the author
No description provided by the author