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

function to find backup available in location #4067

Open
nopzdk opened this issue Oct 11, 2024 · 2 comments
Open

function to find backup available in location #4067

nopzdk opened this issue Oct 11, 2024 · 2 comments

Comments

@nopzdk
Copy link

nopzdk commented Oct 11, 2024

today when performing a restore it requires me to review the folder structure to find snapshot IDs, it would be nice if i can use something like
sctool backup list --find -L s3:docker to find the available snapshots from that location, instead of having to find it manually.
it is very useful if I am restoring a backup into a new cluster.

@Michal-Leszczynski
Copy link
Collaborator

Please take a look at sctool backup list docs.

backup list

This command allow you to list backups from given locations. The command works per cluster and all the locations listed with the –location flag must be accessible from the cluster specified with the –cluster flag. This cluster serves as the coordinator for all these checks. If the Scylla Manager Agent’s of given cluster is not able to reach the location, the command will fail.
Syntax

sctool backup list --cluster <id|name> [flags]

Command options
--all-clusters

Shows backups for all clusters. Useful for listing clusters that are no longer available locally but are backed up in the past to remote location.

Does --all-clusters flag solve your problem?

@nopzdk
Copy link
Author

nopzdk commented Oct 15, 2024

@Michal-Leszczynski that does what I was looking for, just a bit counter intuative that I have to add --cluster xxx --all-clusters
Thanks you.

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

2 participants