开发者

Is there a way to backup everything in an app-engine blobstore?

开发者 https://www.devze.com 2022-12-25 18:37 出处:网络
bulkloader.py is very handy. But as far as I can tell it doesn\'t appear to fetch items from the blo开发者_如何学Cbstore, so you can be left with broken entity relationships if you needed to dump/re

bulkloader.py is very handy.

But as far as I can tell it doesn't appear to fetch items from the blo开发者_如何学Cbstore, so you can be left with broken entity relationships if you needed to dump/restore your application.

Does anyone know a method for completely backing up their data from app-engine including blobstore data?


In Java, you would instantiate a BlobInfoFactory and use BlobInfoFactory.queryBlobInfos.

Then for each blob, you would run BlobstoreService.serve(...) with the BlobKeys returned from the BlobInfos. You still might end up with broken entity relationships - there's no way to guarantee each blob will end up with the same key it was originally loaded with. You'll have to account for this in your application.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号