def store_on_s3(backup_location, backup_filename)
      prod_backup_folder = AWS_S3().buckets.find(ENV["S3_PRODUCTION_BACKUP_BUCKET"]).objects(prefix: backup_location)

      backup_obj = prod_backup_folder.build("#{backup_location}/#{backup_filename}")

      # Need to do this to set content length for some reason
      backup_obj.content = open(@backup_filename)

      backup_obj.save
    end
def store_on_s3(backup_location, backup_filename)
      prod_backup_folder = AWS_S3().buckets.find(ENV["S3_PRODUCTION_BACKUP_BUCKET"]).objects(prefix: backup_location)

      backup_obj = prod_backup_folder.build("#{backup_location}/#{backup_filename}")

      # Need to do this to set content length for some reason
      backup_obj.content = open(@backup_filename)

      backup_obj.save
    end
Stores the recently backed up file in a specified S3 bucket
 @param {string} backup_location