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

Do snapshot now #13474

Closed
wants to merge 3 commits into from
Closed

Do snapshot now #13474

wants to merge 3 commits into from

Conversation

halleyshx
Copy link
Contributor

support do snapshot immediately

$./etcdctl -h
NAME:
        etcdctl - A simple command line client for etcd3.

USAGE:
        etcdctl [flags]

VERSION:
        3.5.0

API VERSION:
        3.5

COMMANDS:
        ...
        **snapshot donow          DoSnapshotNow do an auto snapshot immediately**
        snapshot restore        Restores an etcd member snapshot to an etcd directory
        snapshot save           Stores an etcd node backend snapshot to a given file
        snapshot status         [deprecated] Gets backend snapshot status of a given file
        ...

How to use

# all endpoint
$./etcdctl snapshot donow --cluster
Set doSnapshotNow conf passed, endpoint: http://127.0.0.1:2379
Set doSnapshotNow conf passed, endpoint: http://127.0.0.1:22379
Set doSnapshotNow conf passed, endpoint: http://127.0.0.1:32379
doSnapshotNow success

# one endpoint
$./etcdctl snapshot donow --cluster
Set doSnapshotNow conf passed, endpoint: 127.0.0.1:2379
doSnapshotNow success

@stale
Copy link

stale bot commented Feb 11, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 11, 2022
@stale stale bot closed this Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

1 participant