Skip to content

Export data from Google App Engine's datastore backup to a CSV file

License

Notifications You must be signed in to change notification settings

nikhilsaraf/GAEDataExport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GAEDataExport

Export data from Google App Engine's datastore backup to a CSV file

Prerequisites

  1. Backup your app's data from the Google App Engine datastore to Google Cloud Storage
  2. Download your data using Google's gsutil tool
    • gsutil -m cp -R gs://<application-id>.appspot.com/<cloud-backup-directory> /path/to/local/backup/directory

Usage

python gaeDataExport.py /path/to/local/backup/directory /path/to/existing/output/directory

How it works

Finds all the backup files and the associated collection names using the format used for GAE backups
Reads the backup files using the Google Apis and converts it to a CSV file named after the collection name

Assumptions

This assumes that the first item read for each collection contains the superset of the fields in the collection. It then extracts only these fields from all the other documents in the collection. This can be improved.

About

Export data from Google App Engine's datastore backup to a CSV file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages