Skip to content

Documentation and tools for converting LevelDB files into JSON files. (eg. for reading Google Firestore and Datastore backups)

License

Notifications You must be signed in to change notification settings

Venryx/firestore-leveldb-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

firestore-leveldb-tools

Documentation and tools for converting LevelDB files into JSON files. (eg. for reading Google Firestore and Datastore backups)

For Firestore, instructions for creating these backups can be seen here.

Setup

  1. Make sure Python 2.7 is installed, and present in your Path environment variable. (or just supply the absolute path to its python executable in usage step 1)
  2. Clone/download this repo to disk.

Usage

  1. Run python ToJSON.py PATH_TO_FIRESTORE_BACKUP_FOLDER (pass the direct parent folder of the "output-0", etc. files)
  2. A Data.json file will be created in the backup folder, with the original database structure. (collections as json objects, their documents as keyed entries underneath)

SDK Dependencies

The ToJSON.py script relies on some modules within the google-cloud-sdk and appengine-sdk (older versions, since the newest ones are missing some modules we need). Stripped-down versions of these sdks are included in this repo for convenience; however, if you need to use different versions for some reason, you can find them here:

To use the alternate version downloaded, extract the archives, then replace the corresponding contents within the SDKs folder.

Alternatives

About

Documentation and tools for converting LevelDB files into JSON files. (eg. for reading Google Firestore and Datastore backups)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published