Miao Wang dfdcd6d5a0 s3 sync: Disable --exact-timestamps before bug is fixed
Signed-off-by: Miao Wang <shankerwangmiao@gmail.com>
2020-11-17 20:38:46 +08:00

13 lines
441 B
Bash
Executable File

#!/bin/bash
if [[ ! -z "${TUNASYNC_S3_ENDPOINT}" ]]; then
ENDPOINT="--endpoint-url=${TUNASYNC_S3_ENDPOINT}"
else
ENDPOINT=""
fi
[[ ! -d "${TUNASYNC_WORKING_DIR}" ]] && mkdir -p "${TUNASYNC_WORKING_DIR}"
mkdir /tmp/none; cd /tmp/none # enter an empty folder, so the stars in TUNASYNC_AWS_OPTIONS are not expanded
exec aws --no-sign-request ${ENDPOINT} s3 sync ${TUNASYNC_AWS_OPTIONS} "${TUNASYNC_UPSTREAM_URL}" "${TUNASYNC_WORKING_DIR}"