1
0
Fork 0
mirror of https://github.com/Luzifer/s3sync.git synced 2024-10-18 06:24:20 +00:00
s3sync/README.md

52 lines
1.5 KiB
Markdown
Raw Normal View History

2015-07-26 14:06:24 +00:00
# Luzifer / s3sync
![](https://badges.fyi/github/license/Luzifer/s3sync)
![](https://badges.fyi/github/downloads/Luzifer/s3sync)
2015-07-26 14:06:24 +00:00
`s3sync` is a small utility to sync local directories from/to Amazon S3 without installing any dependencies. Just put the binary somewhere into your path and set three ENV variables and your're ready to sync.
## Features
- Static binary, no dependencies required
- Sync files only if required (judged by file size & modify-date)
2015-07-26 16:42:08 +00:00
- Using multiple threads to upload the transfer is quite fast
2015-07-26 14:06:24 +00:00
- Optionally delete files at target
- Optionally make files public on sync (only if file needs sync)
- Sync local-to-s3, s3-to-local, local-to-local or s3-to-s3
## Usage
1. Set `AWS_ACCESS_KEY`, `AWS_SECRET_ACCESS_KEY` and `AWS_REGION`
2. Execute your sync
```bash
2015-07-26 14:45:47 +00:00
# s3sync --help
2015-07-26 14:06:24 +00:00
Sync files from <from> to <to>
Usage:
s3sync <from> <to> [flags]
Flags:
-d, --delete=false: Delete files on remote not existing on local
-h, --help=false: help for s3sync
2015-07-26 16:02:42 +00:00
--max-threads=10: Use max N parallel threads for file sync
2015-07-26 14:06:24 +00:00
-P, --public=false: Make files public when syncing to S3
2015-07-26 16:42:08 +00:00
--version=false: Print version and quit
2015-07-26 14:06:24 +00:00
# s3sync -d 1/ s3://knut-test-s3sync/
(1 / 3) 05/11/pwd_luzifer_io.png OK
(2 / 3) 07/26/bkm.png OK
(3 / 3) 07/26/luzifer_io.png OK
# s3sync -d 1/ s3://knut-test-s3sync/
(1 / 3) 05/11/pwd_luzifer_io.png Skip
(2 / 3) 07/26/bkm.png Skip
(3 / 3) 07/26/luzifer_io.png Skip
# rm -rf 1/05
# s3sync -d s3://knut-test-s3sync/ 1/
(1 / 3) 05/11/pwd_luzifer_io.png OK
(2 / 3) 07/26/bkm.png Skip
(3 / 3) 07/26/luzifer_io.png Skip
```