remove "--delete", use $TUNASYNC_AWS_OPTIONS instead

This commit is contained in:
Yuxiang Zhang 2019-03-28 23:08:43 +08:00 committed by GitHub
parent 67caef3af9
commit 581bbeaf4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
s3.sh
View File

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
[ ! -d "${TUNASYNC_WORKING_DIR}" ] && mkdir -p "${TUNASYNC_WORKING_DIR}" [ ! -d "${TUNASYNC_WORKING_DIR}" ] && mkdir -p "${TUNASYNC_WORKING_DIR}"
aws ${TUNASYNC_AWS_OPTIONS} --delete --no-sign-request --endpoint-url="${TUNASYNC_S3_ENDPOINT}" s3 sync "${TUNASYNC_UPSTREAM_URL}" "${TUNASYNC_WORKING_DIR}" aws --no-sign-request --endpoint-url="${TUNASYNC_S3_ENDPOINT}" s3 sync ${TUNASYNC_AWS_OPTIONS} "${TUNASYNC_UPSTREAM_URL}" "${TUNASYNC_WORKING_DIR}"