Skip to content

Instantly share code, notes, and snippets.

@marutanm
Created October 13, 2012 05:53
Show Gist options
  • Save marutanm/3883407 to your computer and use it in GitHub Desktop.
Save marutanm/3883407 to your computer and use it in GitHub Desktop.
irb(main):001:0> require 'Fog'
irb(main):002:0> glacier = Fog::AWS::Glacier.new aws_access_key_id: '', aws_secret_access_key: '', region: 'ap-northeast-1'
irb(main):003:0> vault = glacier.vaults.get 'Aperture'
irb(main):005:0> vault.archives.create body: File.new('2006.apvault.tgz'), multipart_chunk_size: 1024*1024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment