<commit_before># Glacier CLI

A command line client to [Amazon Glacier](http://aws.amazon.com/glacier) based on AWS examples.

## Configuration

Create `$HOME/AwsCredentials.properties` with your AWS keys

```
secretKey=…
accessKey=…

```

## Commands

* `upload vault_name file1 file2 …`
* `download vault_name archiveId output_file`
* `delete vault_name archiveId`
* `inventory vault_name`

## Command line options

```
 -output <file_name>   File to save the inventory to. Defaults to 'glacier.json'
 -queue <queue_name>   SQS queue to use for inventory retrieval. Defaults to 'glacier'
 -region <region>      Specify URL as the web service URL to use. Defaults to 'us-east-1'
 -topic <topic_name>   SNS topic to use for inventory retrieval. Defaults to 'glacier'
```

## Examples

Upload file1 and file2 to vault `pictures`

`java -jar glacier-1.0-jar-with-dependencies.jar upload pictures file1 file2`

Download archive with id xxx from vault `pictures` to file `pic.tar` (takes >4 hours)

`java -jar glacier-1.0-jar-with-dependencies.jar download pictures xxx pic.tar`

Delete archive with id xxx from vault `pictures`

`java -jar glacier-1.0-jar-with-dependencies.jar delete pictures xxx`

Get the inventory for vault `pictures` (takes >4 hours)

`java -jar glacier-1.0-jar-with-dependencies.jar inventory pictures`

Upload file1 and file2 to vault `pictures` in Europe region

`java -jar glacier-1.0-jar-with-dependencies.jar -region eu-west-1 upload pictures file1 file2`



## Building

`mvn clean package`<commit_msg>Updating README<commit_after># Glacier CLI

A command line client to [Amazon Glacier](http://aws.amazon.com/glacier) based on AWS examples.

## Configuration

Create `$HOME/AwsCredentials.properties` with your AWS keys

```
secretKey=…
accessKey=…

```

## Commands

* `upload vault_name file1 file2 …`
* `download vault_name archiveId output_file`
* `delete vault_name archiveId`
* `inventory vault_name`

## Command line options

```
 -file   <file_name>   File to save the inventory to. Defaults to 'glacier-<vault-name>-inventory.json'
 -region <region>      Specify URL as the web service URL to use. Defaults to 'us-east-1'
```

## Examples

Upload file1 and file2 to vault `pictures`

`java -jar glacier-1.0-jar-with-dependencies.jar upload pictures file1 file2`

Download archive with id xxx from vault `pictures` to file `pic.tar` (takes >4 hours)

`java -jar glacier-1.0-jar-with-dependencies.jar download pictures xxx pic.tar`

Delete archive with id xxx from vault `pictures`

`java -jar glacier-1.0-jar-with-dependencies.jar delete pictures xxx`

Get the inventory for vault `pictures` (takes >4 hours)

`java -jar glacier-1.0-jar-with-dependencies.jar inventory pictures`

Upload file1 and file2 to vault `pictures` in Europe region

`java -jar glacier-1.0-jar-with-dependencies.jar -region eu-west-1 upload pictures file1 file2`



## Building

`mvn clean package`
{'fraction_non_alphanumeric': 0.10491916064671483, 'fraction_numerical': 0.016511867905056758, 'mean_word_length': 4.316270566727606, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '694064', 'n_tokens_mistral': 996, 'n_tokens_neox': 939, 'n_words': 330}