I have this redis instance in a pod running on 1.21 cluster.
Running kubectl cp -c redis --request-timeout=1m redis-pod:data/dump.rdb /tmp/data/dump.rdb
or
kubectl exec --request-timeout=1m -i redis-pod -- cat /data/dump.rdb > /tmp/data/dump.rdb
I get the following two errors:
The kubectl cp
approach generates: error: unexpected EOF
The second approach creates the file but incomplete, with a smaller size and when loading it with another redis instance I got a server message like the DB is corrupted and wont start.
I've ran redis SAVE
command before. Also copied the dump.rdb
to another directory a tried to copy that one.
Any help would be appreciated.