Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
007a45f
Added resumption of downloads (untested).
Oct 14, 2012
1f290a3
- upload --resume switch implemented (requires bookkeeping).
Oct 14, 2012
ba8e1e0
Download resumption stage 1.
Oct 15, 2012
419c0dc
Fix for updatedb.
Oct 15, 2012
823b8df
Implemented download resumption.
Oct 15, 2012
e0818e8
Fix for Python <2.7
Oct 16, 2012
3d49d70
mmapping file now in parts, instead of trying to mmap it completely.
Oct 16, 2012
73a4efa
Merge branch 'mmap' into upload_resumption
Oct 16, 2012
08cb1a9
Fixed upload of large files.
Oct 16, 2012
4459184
Hope to have improved reaction times on the connection (see issue #71)
Oct 17, 2012
de95be6
Added some response.read() calls to seriously speed up stuff.
Oct 17, 2012
494e58a
fix
Oct 21, 2012
17a1037
Merge branch 'upload_resumption' into development
Oct 21, 2012
a2d2693
Merge branch 'download_resumption' into development
Oct 21, 2012
37b9b2c
Merge branch 'fixes' into development
Oct 21, 2012
f15c306
Implemented parallel upload sessions.
Oct 22, 2012
8c526f0
Updated documentation to include the new options and commands.
Oct 23, 2012
f601bef
Fixed resumption for >50 parts.
Oct 24, 2012
998d7cf
Changed max parts to 1,000 to overcome a bug somewhere deep down the …
Oct 25, 2012
09ec89b
Merge pull request #92 from offlinehacker/master
uskudnik Oct 25, 2012
7097306
- upload --resume switch implemented (requires bookkeeping).
Oct 14, 2012
65438be
Merge branch 'parallel_uploads' of git://github.com/wvmarle/amazon-gl…
Oct 25, 2012
dc6adda
Fixing stupid typo.
Oct 26, 2012
7f9f025
Fix typo calling abort_multipart_upload
Oct 29, 2012
9193019
Fix for parallel uploads on OS-X results in fix of more.
Oct 30, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
Release notes
=============

**Glacier command line utility was renamed from `glacier` to `glacier-cmd`, because of inconsistencies with boto.**
**15/10/2012: Bookkeeping database layout has changed a bit, the old format would cause problems if multiple files with the same name were uploaded to a vault. If you are upgrading this tool, run `glacier-cmd updatedb` once to update your bookkeeping database to the new layout. If you do not use bookkeeping, no need for this.**

**Renamed configuration file from `.glacier` to `.glacier-cmd` to reflect new name of this utility.**
**WARNING: make sure this SimpleDB domain is only used for glacier-cmd bookkeeping data storage, as all items that are not recognised will be cleaned up in the process.**

**Command line parameter description changed from positional argument to optional argument. This means from now on you must add `--description <description>` on the command line to give a description. This to allow for multiple file names and wild cards to be used in conjunction with the `upload` subcommand.**

**Renamed configuration file from `.glacier` to `.glacier-cmd` to reflect new name of this utility.**

**Glacier command line utility was renamed from `glacier` to `glacier-cmd`, because of inconsistencies with boto.**

**For everybody having problems with install, don't forget to install git.**

Amazon Glacier CLI
Expand Down
28 changes: 26 additions & 2 deletions doc/Usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -292,17 +292,27 @@ Set a description of your archive. This may be up to 1024 characters long, and w

Resume an interrupted job with the specified uploadid. If this option is present, ``glacier-cmd`` will check wether this uploadid exists, and if so check the hashes of the already uploaded parts to the local file. If all parts match, the upload will be resumed. If there is any problem, an error message will be shown.

* ``--resume``
The uploadid of an upload can be found using the ``--listmultiparts`` command as described above.

Not implemented yet.
* ``--resume``

Attempt to automatically resume an upload using information stored in the bookkeeping database. This option requires :doc:`Bookkeeping` to be enabled.

This checks first if the file name and file size match the information in the database, then whether there is a multipart job active for this upload, and finally whether the already uploaded data matches the local data.

This option only works for uploads of local files; in case of resumption of stdin jobs you must use the ``--uploadid`` option as described above.

* ``--bacula``

The file name is a bacula-style list of multiple files. This is useful if this script is used in conjunction with the Bacula backup software. Bacula separates files with the `|` character; see :doc:`Scripting` for more details.
The file list should look like ``/path/to/backups/vol001|vol002|vol003``, with the path given by the user script.

* ``--sessions``

Number of parallel upload sessions to use. Default is 1. This may be used to speed up uploads of archives to Glacier.

The script has no upper limit on number of sessions, you may experiment a bit to find out what your system can handle and what gives you the best results. Note that with multiple sessions the upload rate indicated is inaccurate at the beginning, and becomes progressively more accurate over time.

Downloading an archive.
^^^^^^^^^^^^^^^^^^^^^^^

Expand Down Expand Up @@ -358,6 +368,10 @@ The name of the file to write the downloaded data to. If omitted, stdout is used

Overwrite a local file with the same name. If not given, an error will be shown if `<outfile>` exists already.

* ``--resume``

Attempt to resume an aborted download session. This requires the ``--outfile`` option to be given with the name of the file containing the partially downloaded archive. When invoked, the remote data will be compared to the already downloaded data, and if it matches the download will continue.

Deleting an archive.
^^^^^^^^^^^^^^^^^^^^

Expand Down Expand Up @@ -458,3 +472,13 @@ To calculate the tree hash from a local file, to compare with the hash Amazon pr
+--------------+------------------------------------------------------------------+


Update database.
----------------
``$glacier-cmd updatedb``

.. program-output:: glacier-cmd updatedb -h

This anyone upgrading from a pre-late-oct-2012 version has to run once. That time changes were made to the bookkeeping database, and this command converts your current database to the new format.

Running it more than once has no effect, and this command is subject to removal from future versions.

Loading