mirror of
https://github.com/Luzifer/s3sync.git
synced 2024-12-20 19:41:15 +00:00
Update README
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
5ecef07c67
commit
7d76fc8a58
1 changed files with 19 additions and 22 deletions
41
README.md
41
README.md
|
@ -21,31 +21,28 @@
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# s3sync --help
|
# s3sync --help
|
||||||
Sync files from <from> to <to>
|
Usage of s3sync:
|
||||||
|
-d, --delete Delete files on remote not existing on local
|
||||||
|
--endpoint string Switch S3 endpoint (i.e. for MinIO compatibility)
|
||||||
|
--log-level string Log level (debug, info, warn, error, fatal) (default "info")
|
||||||
|
--max-threads int Use max N parallel threads for file sync (default 10)
|
||||||
|
-P, --public Make files public when syncing to S3
|
||||||
|
--version Prints current version and exits
|
||||||
|
|
||||||
Usage:
|
|
||||||
s3sync <from> <to> [flags]
|
|
||||||
|
|
||||||
Flags:
|
# echo "ello" >test.txt
|
||||||
-d, --delete=false: Delete files on remote not existing on local
|
# echo "foobar" >test2.txt
|
||||||
-h, --help=false: help for s3sync
|
|
||||||
--max-threads=10: Use max N parallel threads for file sync
|
|
||||||
-P, --public=false: Make files public when syncing to S3
|
|
||||||
--version=false: Print version and quit
|
|
||||||
|
|
||||||
# s3sync -d 1/ s3://knut-test-s3sync/
|
# s3sync --delete ./ s3://test/
|
||||||
(1 / 3) 05/11/pwd_luzifer_io.png OK
|
time="2023-06-09T17:15:09+02:00" level=info msg="transferred file" filename=test2.txt
|
||||||
(2 / 3) 07/26/bkm.png OK
|
time="2023-06-09T17:15:09+02:00" level=info msg="transferred file" filename=test.txt
|
||||||
(3 / 3) 07/26/luzifer_io.png OK
|
|
||||||
|
|
||||||
# s3sync -d 1/ s3://knut-test-s3sync/
|
# s3sync --delete ./ s3://test/
|
||||||
(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
|
# touch test.txt
|
||||||
# s3sync -d s3://knut-test-s3sync/ 1/
|
# rm test2.txt
|
||||||
(1 / 3) 05/11/pwd_luzifer_io.png OK
|
|
||||||
(2 / 3) 07/26/bkm.png Skip
|
# s3sync --delete ./ s3://test/
|
||||||
(3 / 3) 07/26/luzifer_io.png Skip
|
time="2023-06-09T17:15:29+02:00" level=info msg="deleted remote file" filename=test2.txt
|
||||||
|
time="2023-06-09T17:15:29+02:00" level=info msg="transferred file" filename=test.txt
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue