Skip to main content

B.AwsS3Backup

A python based package that allows you to back up, restore, and seed S3 buckets.

Description

Sometimes you want to make a small modification to your S3 bucket, however it usually requires destruction of the bucket itself. This library allows you to do those small modifications without any headache. You can easily backup all your data to your local computer, delete the bucket, create a new one with desired modifications, and then simply restore it!

Remarks

Biomapas aims to modernise life-science industry by sharing its IT knowledge with other companies and the community. This is an open source library intended to be used by anyone. Improvements and pull requests are welcome.

  • Python 3
  • S3
  • Boto3

Assumptions

The project assumes the following:

  • You have basic knowledge in python programming.
  • You have basic knowledge in S3.

Useful sources

Install

The project is built and uploaded to PyPi. Install it by using pip.

pip install b_aws_s3_backup

Or directly install it through source.

pip install .

Usage & Examples

The library uses boto3 AWS SDK for interacting with AWS environment. Hence, environmental credentials (such as aws_access_key_id, aws_secret_access_key, and region_name) are required.

The library exposes cli commands. Read more about them down below.

s3seed

Seeds your S3 bucket with random data.

> s3seed BucketName
s3back

Backups your whole bucket(s).

# Single bucket.
> s3back BucketName

# All buckets.
> s3back 
s3rest

Restores your whole bucket(s).

# Single bucket.
> s3rest BucketName

# All bucket.
> s3rest

Testing

This project currently has no tests.

Contribution

Found a bug? Want to add or suggest a new feature?
Contributions of any kind are gladly welcome. You may contact us directly, create a pull-request or an issue in github platform. Lets modernize the world together.

Release history

1.0.0

  • Rename class UploadDb to UploadS3. This was a typo.
  • Fix issue where item keys in S3 were full paths to local computer files.

0.0.1

  • Initial build.

Metadata

Release files for b-aws-s3-backup 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for b-aws-s3-backup 1.0.0
File Size Uploaded Provenance
b_aws_s3_backup-1.0.0.tar.gz 11.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for b-aws-s3-backup 1.0.0
File Interpreter ABI Platform
b_aws_s3_backup-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 25.0 kB

Release files / b_aws_s3_backup-1.0.0.tar.gz

Download URL b_aws_s3_backup-1.0.0.tar.gz
Size 11.4 kB
Tags Source
SHA-256 checksum
How to use checksums
047126312335689af72984f42c8590fe4905034c0f9eee1502d087e3cc527520
BLAKE2b-256 checksum
How to use checksums
948643aec16f40f29dd9f9e2d7c0bce0e5b097df165b29aa7803dafdf10b3737
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/47.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

Release files / b_aws_s3_backup-1.0.0-py3-none-any.whl

Download URL b_aws_s3_backup-1.0.0-py3-none-any.whl
Size 13.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05d4d342c5c9737b48060736ab26169ad0a85e208a8576715bbf006c826fd6d1
BLAKE2b-256 checksum
How to use checksums
4a10db31a135434c27b7877c5d7888b9b40aa577c23870453df68fcbd1f63578
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/47.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

Security for b-aws-s3-backup 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page