• Wen Hui's avatar
    redis-cli cluster import support source and target that need auth (#7994) · 3941d2e0
    Wen Hui authored
    Make it possible for redis-cli cluster import to work with source and
    target that require AUTH.
    
    Adding two different flags --cluster-from-user, --cluster-from-pass
    and --cluster-askpass for source node authentication.
    Also for target authentication, using existing --user and --pass flag.
    
    Example:
    
    ./redis-cli --cluster import 127.0.0.1:7000 --cluster-from 127.0.0.1:6379 --pass 1234 --user default --cluster-from-user default --cluster-from-pass 123456
    
    ./redis-cli --cluster import 127.0.0.1:7000 --cluster-from 127.0.0.1:6379 --askpass --cluster-from-user default --cluster-from-askpass
    
    
    (cherry picked from commit 639b73cd)
    3941d2e0
redis-cli.c 304 KB