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

restore not working. #107

Open
siddhu07 opened this issue Apr 26, 2017 · 6 comments
Open

restore not working. #107

siddhu07 opened this issue Apr 26, 2017 · 6 comments

Comments

@siddhu07
Copy link

Traceback (most recent call last):
File "/usr/local/bin/cassandra-snapshotter", line 11, in
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/cassandra_snapshotter/main.py", line 284, in main
restore_backup(args)
File "/usr/local/lib/python2.7/dist-packages/cassandra_snapshotter/main.py", line 110, in restore_backup
args.s3_bucket_name
TypeError: init() takes exactly 6 arguments (5 given)

this is what i get when i execute
sudo cassandra-snapshotter --s3-bucket-name=bucket --s3-base-path=cassandra --aws-access-key-id=XXXX --aws-secret-access-key=XXXX restore --keyspace oneg --target-hosts 172.31.54.113

EXTRA INFO:
i install using pip install cassandra_snapshotter

@tbarbugli
Copy link
Owner

you need to specify the task you want to execute (eg. backup)

@siddhu07
Copy link
Author

i need to restore it. And i gave restore. even list is working fine for me.

@tbarbugli
Copy link
Owner

sorry I missed that, restore is not really supported by the tool. There is some code and support for backup restoration but some fiddling with the code is required.

@siddhu07
Copy link
Author

siddhu07 commented Apr 26, 2017

if cassandra snapshotter does not support, is there any other way to restore the data?.
and can you update me, once the code is done?

@runesl
Copy link

runesl commented May 23, 2017

"restore is not really supported by the tool"
Why use this tool then? Doesn't it make a lot more sense to do a FS-level snapshot? (asuming your data cassandra directory is on a separate volume, which it should be for any database)

@DoctorOgg
Copy link

im getting the same issue with the restore command, i understand this is still a work in progress, any idea of when this command cant at least grab the files from s3, so we can manually restore from that point?

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

4 participants