Skip to main content

backwork-upload-cos Build Status PyPI version

Add support for IBM Cloud Object Storage uploads to backwork.

Installing

You can use pip to install this plug-in:

$ pip install backwork-upload-cos

Using

After installing the plug-in you will be able to use the upload cos, show cos, and download cos commands on backwork.

backwork upload cos

$ backwork upload cos --help
usage: backwork upload cos [-h] [-e ENDPOINT_URL] [-s INSTANCE_ID]
                          [-u ACCESS_KEY] [-p SECRET_KEY]
                          [local_path] bucket remote_path

Upload a file to Cloud Object Storage.

positional arguments:
  local_path            path in the local file system of the file to be
                        uploaded
  bucket                target s3 bucket
  remote_path           path on Cloud Object Storage where the file will be
                        stored

optional arguments:
  -h, --help            show this help message and exit
  -e ENDPOINT_URL, --endpoint-url ENDPOINT_URL
                        endpoint URL of the S3 storage
  -s INSTANCE_ID, --instance-id INSTANCE_ID
                        service instance id
  -u ACCESS_KEY, --access-key ACCESS_KEY
                        acccess key id of HMAC credentials
  -p SECRET_KEY, --secret-key SECRET_KEY
                        secret access key of HMAC credentials

backwork show cos

list backups

usage: backwork show cos [-h] [-e ENDPOINT_URL] [-s INSTANCE_ID]
                         [-u ACCESS_KEY] [-p SECRET_KEY] [-l LIMIT]
                         [--sort-last-modified]
                         bucket path

List available backups in Cloud Object Storage.

positional arguments:
  bucket                target s3 bucket
  path                  Path/prefix to the look for backups in

optional arguments:
  -h, --help            show this help message and exit
  -e ENDPOINT_URL, --endpoint-url ENDPOINT_URL
                        endpoint URL of the S3 storage
  -s INSTANCE_ID, --instance-id INSTANCE_ID
                        service instance id
  -u ACCESS_KEY, --access-key ACCESS_KEY
                        acccess key id of HMAC credentials
  -p SECRET_KEY, --secret-key SECRET_KEY
                        secret access key of HMAC credentials
  -l LIMIT, --limit LIMIT
                        max number of results to return
  --sort-last-modified  if passed, sorts results from most to least recent

A common use case would be to get the name of the most recent backup:

backwork show cos \
  --endpoint-url "${IBM_COS_ENDPOINT_URL}" \
  --instance-id "${IBM_COS_INSTANCE_ID}" \
  --access-key "${IBM_COS_ACCESS_KEY}" \
  --secret-key "${IBM_COS_SECRET_KEY}" \
  "my-bucket" \
  "my-path" \
  --limit 1 \
  --sort-last-modified \
  | jq .backups[0]

backwork download cos

$ backwork download cos --help
usage: backwork download cos [-h] [-e ENDPOINT_URL] [-s INSTANCE_ID]
                             [-u ACCESS_KEY] [-p SECRET_KEY]
                             remote_path bucket [local_path]

Download a file from Cloud Object Storage.

positional arguments:
  remote_path           Cloud object storage path/prefix to the object being
                        downloaded
  bucket                target s3 bucket
  local_path            path to save the file to on the local filesystem

optional arguments:
  -h, --help            show this help message and exit
  -e ENDPOINT_URL, --endpoint-url ENDPOINT_URL
                        endpoint URL of the S3 storage
  -s INSTANCE_ID, --instance-id INSTANCE_ID
                        service instance id
  -u ACCESS_KEY, --access-key ACCESS_KEY
                        acccess key id of HMAC credentials
  -p SECRET_KEY, --secret-key SECRET_KEY
                        secret access key of HMAC credentials

Author

  • Michael Lin <michael.lin1@ibm.com>

Metadata

Release files for backwork-upload-cos 0.3.2

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

Source distribution (sdist)

Source distribution for backwork-upload-cos 0.3.2
File Size Uploaded Provenance Actions
backwork-upload-cos-0.3.2.tar.gz 9.3 kB Without provenance Details for backwork-upload-cos-0.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for backwork-upload-cos 0.3.2
File Interpreter ABI Platform Actions
backwork_upload_cos-0.3.2-py3-none-any.whl Python 3 none any Details for backwork_upload_cos-0.3.2-py3-none-any.whl

Total release size: 18.4 kB

Release files / backwork-upload-cos-0.3.2.tar.gz

Download URL backwork-upload-cos-0.3.2.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c015691c75ad6b5b7110254f163d1369866ba467fd99ebd090769511df02d82f
BLAKE2b-256 checksum
How to use checksums
9a713a8ec5af775bdc3887c59648c4e827774c19fd41b3d9b2e641e75aaa8b57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / backwork_upload_cos-0.3.2-py3-none-any.whl

Download URL backwork_upload_cos-0.3.2-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bdb0620ef39e641daee291078464d385e792042febf1eb3dd0bc764f718329c3
BLAKE2b-256 checksum
How to use checksums
bc272571ac035bb4010f8793d859dfe084016463c146eed98ea11467638ecf20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for backwork-upload-cos 0.3.2

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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