Welcome to ValleyBackups’s documentation!

Contents:

Command-line based AWS Glacier backup tool

Installation

  • Run pip install valleybackups.

AWS Glacier set up

Create access_key and secret_access_key in AWS Console

Get the AWS account id:

Get the AWS region:

Set permissions in AWS

Create a Glacier Vault:

Set the configuration in ValleyBackups

  • valleybackups set_config base access_key_id *<access_key>*
  • valleybackups set_config base secret_access_key *<secret_access_key>*
  • valleybackups set_config base aws_account_id *<account_id>*
  • valleybackups set_config base region_name *us-west-2*
  • valleybackups set_config glacier vault_name *mybackups*

Verify config:

  • valleybackups get_config

Setting up your AWS account

ACCOUNT ID

REGION NAME

ACCESS KEYS

  • Navigate to the IAM service -> Users -> Create new User
  • Take note of the credentials shown

Creating a Glacier Vault

  • Run valleybackups create_vault <vault_name> (this process creates a SNS topic and assigns it to the recently created vault, to enable Notifications)

Create Notification Subscriptions for our Vault

When we want to download any file stored in our Vault, we will need to configure a Subscription (basically telling AWS where to notify our app that the file is ready)

How to use it

Pick any file you want to backup and push it to AWS Glacier:
valleybackups backup <filename>
Then list all your backed up files:
valleybackups list
Retrieve a file from valleybackups by using the ID in the previous list:
valleybackups request 1
This will generate a job to retrieve the file. It will usually takes hour. Once it’s ready you can retrieve in the folder you currently are by running:
valleybackups download 1

Available Commands

Backup

Run valleybackups backup <file>

Batch Upload

Run valleybackups bacth_upload <folder>

List Archives

Run valleybackups list

List Uncompleted (Pending) Jobs

Run valleybackups uncompleted_jobs

Check Config

Run valleybackups check_config

Download File

Run valleybackups download <archive_id> (From list command)

Create Vault

Run valleybackups create_vault <vault_name>

Support

Need help installing ValleyBackups in your project? Contact us via http://www.valleyworks.us/contact/ or email us to valleybackups@valleyworks.us.

How to contribute to ValleyBackups

We welcome rockstars and ninja contributors like you.

If you have any bug report, feature request, or any suggestion, please open a new issue on GitHub.

To submit hotfixes or features please create a pull request in GitHub.

Repository: https://github.com/valleyworks/valleybackups

Thank you!