Docker: Returning to rsync --checksum

This commit is contained in:
Ole Schütt 2019-08-08 12:41:53 +02:00 committed by Ole Schütt
parent e4cf6be54a
commit 1ffd615182

View file

@ -25,9 +25,10 @@ if [ -n "${GIT_REF}" ]; then
elif [ -d /mnt/cp2k ]; then
echo -e "\n========== Copying Changed Files =========="
# Since this is for debugging, we assume the image was built on the same
# host and we can rely on rsync's default algorithm which uses timestamps.
rsync --delete \
# We can't rely on timestamps as they depend on the git checkout time.
# Hence, we use checksums despite the IO because a full rebuild would be even more costly.
rsync --checksum \
--delete \
--executability \
--verbose \
--recursive \