-
Notifications
You must be signed in to change notification settings - Fork 128
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
Backup & Restore database with docs with binary attachments #2
Comments
Hi Graham, Bynaries,if I'm not wrong, are usually attached to the object as strings of chars. Il giorno 26/set/2013, alle ore 20:48, Telephonic ha scritto:
|
This issue should be solved. |
1 similar comment
This issue should be solved. |
Hi Daniel, I'm very sorry for the slow reply here. I've tested again and the attachments aren't included when using couchdb-dump.sh. There is no binary string within the downloaded file. Were you able to get this to work in your tests? thanks, |
Dear Graham, Daniele http://www.danielebailo.it/ http://danielebailo.wordpress.com/ 2014-08-17 0:59 GMT+02:00 Telephonic Communications Inc. <
|
FYI; I looked at this issue whilst contributing some other fixes; the main issue is that requesting the docs output doesn't 'print' the binary content; example:
In order for these to be managed too, I suspect you'd need to scan your entire output for references to attachement and then, programatically download the binary separately. It's a bit long winded, and unfortunately out of scope for the changes that i've been looking to implement. |
fixed here #8 |
Merge pull request #15 from dalgibbard/master
According to issue danielebailo#2, this limitation is fixed.
Great work on these scripts! Thank you for writing these and sharing. It's great to be able to just grab a copy of a whole CouchDB database.
Did you design the scripts in mind to handle binary attachments? We seem to able to download a full database that includes binary attachments. The backup file and the original database size are similar. However, when I try to restore this database dump with binary files, I get the following error:
{"error":"bad_request","reason":"invalid UTF-8 JSON"}
Have you come across the above error before?
I have been able to restore pure JSON (non binary) databases without any trouble.
Thank you!
Graham
CTO, Telephonic
The text was updated successfully, but these errors were encountered: