Skip to content

Instantly share code, notes, and snippets.

@ohokay
ohokay / cloudapp-export.rb
Last active September 7, 2018 11:19 — forked from adamcooke/cloudapp-export.rb
Apparently the cloud app api returns a date object, so it needs to be converted to a string.
#!/usr/bin/env ruby
# A quick script to download all your files from CloudApp.
# To run this just run the script passing your e-mail & password
# to the script, for example:
#
# gem install cloudapp_api
# ruby cloudapp-export.rb [email protected] mypassword
#
# Heroku S3 Database backup task
# by Nick Merwin (Lemur Heavy Industries) 10.08.09
# * dumps db to yaml, gzip's and sends to S3
#
# Setup:
# 1) replace APP_NAME and BACKUP_BUCKET with your info
# 2) add config/s3.yml like so (same as Paperclip's):
# production:
# access_key_id: ...
# secret_access_key: ...