# Rails Girls Summer of Code 2017: Backup Providers

**URL:** <https://meta.discourse.org/t/rails-girls-summer-of-code-2017-backup-providers/65597>\
**Category:** Development\
**Created:** [July 4, 2017, 3:52pm UTC](https://meta.discourse.org/t/rails-girls-summer-of-code-2017-backup-providers/65597 "2017-07-04T15:52:01Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![kajatiger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kajatiger/32/74692_2.png) [@kajatiger](https://meta.discourse.org/u/kajatiger)\
**Post date:** [July 13, 2017, 2:59pm UTC](https://meta.discourse.org/t/rails-girls-summer-of-code-2017-backup-providers/65597/10 "2017-07-13T14:59:12Z")

</div>

Here is a little update on what we have been doing so far:

- we looked at the drop-box plugin and learned that it overwrites the after\_create\_hook method inside the backup.rb model with a Backup.class\_eval
- we used the same method to hook into the backup in discourse
- we realized that the GoogleDrive OAuth uses a complex way to get the access\_token for a certain user with his account, so
- we decided to use another way of authorization: the GoogleDrive Service Account ([google-drive-ruby/doc/authorization.md at master · gimite/google-drive-ruby · GitHub](https://github.com/gimite/google-drive-ruby/blob/master/doc/authorization.md) look at the 3rd option here)
- we successfully sent our backup files to our service account in the development mode
- we pushed our changes to a repository ([GitHub - berlindiamonds/discourse-sync-to-googledrive: discourse backups in google drive · GitHub](https://github.com/berlindiamonds/discourse-googledrive-backup))
- we started writing tests with Rspec

It’s kind of working, but still needs a lot of improvement. Please feel free to comment, criticize, suggest and ask 🙂

---

_[View the full topic](https://meta.discourse.org/t/rails-girls-summer-of-code-2017-backup-providers/65597)._
