This project has been archived by its maintainers, and is no longer receiving any updates.
s3-sync
Sync AWS S3 storage:
- Sync file from s3 -> s3
- Sync file from s3 -> local storage
- Sync file from local storage -> s3
Installation
pip install s3sync
S3 sync s3 to s3
Read from parameters
s3-sync --sync-s3-bucket true \
# using 5 concurrent thread default is 2
--thread 5 \
--source-bucket-name source-bucket \
--source-region-name ap-southeast-1 \
--source-access-key-id source-access-key \
--source-secret-access source-secret \
--target-bucket-name target-bucket \
--target-region-name ap-southeast-3 \
--target-access-key-id target-access-key \
--target-secret-access target-secret
Read from json file
- Create example json file as bellow example, you can name this file whatever
{
"source": {
"bucket_name": "source-bucket",
"region_name": "ap-southeast-1",
"access_key_id": "source-access-key",
"secret_access_key": "source-secret-key"
},
"target": {
"bucket_name": "target-bucket",
"region_name": "ap-southeast-3",
"access_key_id": "target-access-key",
"secret_access_key": "target-secret-key"
}
}
- Then execute command
s3-sync --sync-s3-bucket true -json /home/ubuntu/config.json --thread 5
S3 sync s3 to local (Give absolute path for this)
Read from parameters
s3-sync --sync-s3-local true \
# using 5 concurrent thread default is 2
--thread 5 \
--source-bucket-name source-bucket \
--source-region-name ap-southeast-1 \
--source-access-key-id source-access-key \
--source-secret-access source-secret-key \
--target-local-path /home/ubuntu/sync-s3/my-folder
Read from json file
- Create example json file as bellow example, you can name this file whatever
{
"source": {
"bucket_name": "source-bucket",
"region_name": "ap-southeast-1",
"access_key_id": "source-access-key",
"secret_access_key": "source-secret-key"
},
"target": {
"path": "/home/ubuntu/sync-s3/my-folder"
}
}
- Then execute command
s3-sync --sync-s3-local true -json /home/ubuntu/config.json --thread 5
S3 sync local to s3
Read from parameters
s3-sync --sync-local-s3 true \
# using 5 concurrent thread default is 2
--thread 5 \
--source-local-path /home/ubuntu/sync-s3/my-folder \
--target-bucket-name target-bucket \
--target-region-name ap-southeast-3 \
--target-access-key-id target-access-key \
--target-secret-access target-secret-key
Read from json file
- Create example json file as bellow example, you can name this file whatever
{
"source": {
"path": "/home/ubuntu/sync-s3/my-folder"
},
"target": {
"bucket_name": "target-bucket-name",
"region_name": "ap-southeast-3",
"access_key_id": "target-access-key",
"secret_access_key": "target-secret-key"
}
}
- Then execute command
s3-sync --sync-local-s3 true -json /home/ubuntu/config.json --thread 5
Help & Bugs
If you are still confused or found a bug, please open the issue. All bug reports are appreciated, some features have not been tested yet due to lack of free time.
License
s3-sync released under MIT. See LICENSE for more details.
Metadata
Release files for s3sync 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| s3sync-0.1.1.tar.gz | 6.4 kB | Without provenance | Details for s3sync-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| s3sync-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for s3sync-0.1.1-py3-none-any.whl |
Total release size: 16.8 kB
Release files / s3sync-0.1.1.tar.gz
| Download URL | s3sync-0.1.1.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a6006228a68ab369c546c0c6dd15d508ce994c8c4c885df6121965d252a7961
|
|
BLAKE2b-256 checksum How to use checksums |
1135ccf5ccdae8127bc10fbca4d18b0d296fc5a157981e2e8f73f125326079b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.10.5 Darwin/21.6.0
|
Release files / s3sync-0.1.1-py3-none-any.whl
| Download URL | s3sync-0.1.1-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
43ed733513e00169dbf080d818a82a58a3fed93ad8bb4f234a50681f0cf81414
|
|
BLAKE2b-256 checksum How to use checksums |
1984c78930b118234bddf2a0ea2cd78d8f5261a6e80da02fc438b0197c95d508
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.10.5 Darwin/21.6.0
|
Security for s3sync 0.1.1
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.