Today I had a task to take backup of database and upload to S3. Taking the backup to local machine was straight forward job. Uploading to S3 with fog-aws
gem was time consuming due to lack of documentation. May be this article may help you with Uploading file to S3 with fog. Since the application is already using fog-aws
gem, I preferred to use the same gem over aws-sdk
.
Make sure Gemfile has
gem 'fog-aws'