Save a snapshot (BGSAVE)

Start an RDB snapshot save in the background

redis-cli -h redis BGSAVE

tool
redis32 commands
tags
redis

More redis commands

  • redis-cli -h redis INFO replication

    Show the master or replica role, replication offset and connected replicas

  • redis-cli -h redis --scan --pattern 'session:*' | head -20

    Find keys by pattern without blocking Redis (use it instead of KEYS in production)

  • redis-cli -h redis TTL <key>

    Show the remaining TTL in seconds: -1 means no expiry, -2 means the key does not exist

  • redis-cli MONITOR | grep -v PING

    Stream every command sent to Redis, without health-check pings

  • redis-cli SLOWLOG GET 20

    Show the last 20 slow commands with execution time in microseconds

all 32 redis commands