Menu Close

7.4.3. 备份 backend-redis

从 redis 备份 dump.rdb 文件:

oc cp $(oc get pods -l 'deploymentConfig=backend-redis' -o json | jq '.items[0].metadata.name' -r):/var/lib/redis/data/dump.rdb ./backend-redis-dump.rdb