Skip to main content

Backs up a file or directory to S3

Project description

CLI for backing up to S3

Usage

  • Install AWS CLI and add your credentials

  • Run “pip install -e .” in the programs parent directory

  • Run script from a directory to backup OR point to directory.

  • First variable is the target object and second variable is the destination bucket.

  • If the json config default bucket is set then you can skip the second variable to use the default.

  • To use a wildcard you must place it in quotations ‘*’.

  • To use recursive wildcards you must use ‘**’ see glob module.

Examples

Example to upload current working directory:

s3simplebackup . testbucket

Example to upload a home Directory:

s3simplebackup ~ testbucket

Example to upload a folder:

s3simplebackup folder testbucket

Example to upload all python scripts in Directory with default bucket:

s3simplebackup '*.py'

Example to upload all python scripts recursively in directory with default bucket:

s3simplebackup '**.py'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

s3simplebackup-1.2.0.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file s3simplebackup-1.2.0.tar.gz.

File metadata

  • Download URL: s3simplebackup-1.2.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for s3simplebackup-1.2.0.tar.gz
Algorithm Hash digest
SHA256 8a858a3b8ff5f9eca049589d8f0164ea4dd949c41a67b803e7f611a6d38fe56c
MD5 8282bbb7544483dd7aaeb4689b34d909
BLAKE2b-256 54282cb056162ab6e6ddc285c89b6536f6795ba7ba72b2e8b0735e867f2a1180

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page