Skip to content

Commit

Permalink
Add --exact-timestamps to s3 sync
Browse files Browse the repository at this point in the history
Fixes: #88

Signed-off-by: Miao Wang <[email protected]>
  • Loading branch information
shankerwangmiao committed Nov 9, 2020
1 parent 5f11c87 commit 0e23be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ 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}"
exec aws --no-sign-request ${ENDPOINT} s3 sync --exact-timestamps ${TUNASYNC_AWS_OPTIONS} "${TUNASYNC_UPSTREAM_URL}" "${TUNASYNC_WORKING_DIR}"

2 comments on commit 0e23be3

@z4yx
Copy link
Member

@z4yx z4yx commented on 0e23be3 Nov 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我记得这个参数会导致saltstack每次同步时下载全部文件,貌似上游在不断刷新文件时间戳

@shankerwangmiao
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

唔,目前观察并没有,反而这个导致了文件(大小一样的)不更新

Please sign in to comment.