I’ve written a node 8.x+ console app and module for backing up one or more contentful spaces, including to git.
Medium post: https://medium.com/@avaragado/contentful-backup-f1c4cbe5b367
npm: https://www.npmjs.com/package/@avaragado/contentful-backup
github: https://github.com/avaragado/contentful-backup
It’s not perfect, but it gets the job done for me right now. I hope others find it useful too.
(To be clear: I’m not an employee of Contentful and this is not an official Contentful product.)