AUTH support
scalp42 opened this issue · comments
Hello @scalp42
Sorry for, eh late answer. There is an alternative way to provide source and destination endpoint:
redis://:<pass>@<host>:<port>/<dbIndex>
I've checked it works:
$go run main.go copy redis://localhost:63791/1 redis://localhost:63796/0
Start copying
2021/09/16 00:21:37 NOAUTH Authentication required.
exit status 1
$ go run main.go copy redis://localhost:63791/1 redis://:12345@localhost:63796/0
Start copying
2021/09/16 00:21:46 Scanned: 39 Exported: 8 Pushed: 8 after 1.000969699s
2021/09/16 00:21:47 Scanned: 43 Exported: 12 Pushed: 12 after 2.001045318s
2021/09/16 00:21:48 Scanned: 169 Exported: 138 Pushed: 138 after 3.000977217s
2021/09/16 00:21:49 Scanned: 381 Exported: 350 Pushed: 350 after 4.000101507s
2021/09/16 00:21:50 Scanned: 428 Exported: 397 Pushed: 397 after 5.000586506s
2021/09/16 00:21:50 Scanned: 4095 Exported: 4095 Pushed: 4095 after 5.080411285s
Finish copying
I'll add it to the documentation for the project