Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以支持lastsave指令么 #1143

Closed
Gourds opened this issue Jan 21, 2022 · 3 comments
Closed

可以支持lastsave指令么 #1143

Gourds opened this issue Jan 21, 2022 · 3 comments

Comments

@Gourds
Copy link

Gourds commented Jan 21, 2022

类似:https://redis.io/commands/lastsave
方便备份的时候判断用

@kernelai
Copy link
Collaborator

这是个好的需求。我们可以做,我先放到任务列表里。

@Gourds
Copy link
Author

Gourds commented Jan 24, 2022

另外请教一下,
现在我是通过redis-cli -p 9221 --no-auth-warning info |grep "is_bgsaving" |awk -F':' '{print $2}'这个指令获取备份状态,想知道这个准确么(即下面的状态是否是有效的)

# Stats
total_connections_received:88
instantaneous_ops_per_sec:5
total_commands_processed:7563
is_bgsaving:No
is_scaning_keyspace:No
is_compact:No
compact_cron:02-04/60
compact_interval:

@wanghenshui
Copy link
Collaborator

另外请教一下, 现在我是通过redis-cli -p 9221 --no-auth-warning info |grep "is_bgsaving" |awk -F':' '{print $2}'这个指令获取备份状态,想知道这个准确么(即下面的状态是否是有效的)

# Stats
total_connections_received:88
instantaneous_ops_per_sec:5
total_commands_processed:7563
is_bgsaving:No
is_scaning_keyspace:No
is_compact:No
compact_cron:02-04/60
compact_interval:

准的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants