Skip to content

Commit c5aaff8

Browse files
confirmed working automic setup
1 parent 5d0066b commit c5aaff8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mirror-s3.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ fi
3030
if [ -n "$DO_ATOMIC" ]; then
3131
echo "== ATOMIC MODE ENABLED =="
3232
echo "=> Syncing from source..."
33-
rclone --progress $BW_LIMIT --config=/etc/rclone.conf sync sync_src:${SOURCE_BUCKET} sync_dst:${DESTINATION_TMP_BUCKET}
33+
rclone --progress $BW_LIMIT --config=/etc/rclone.conf sync sync_src:${SOURCE_BUCKET} sync_dst:${DESTINATION_TMP_BUCKET} --compare-dest=sync_dst:${DESTINATION_BUCKET}
3434
echo "=> Moving..."
35-
rclone --config=/etc/rclone.conf move sync_dst:${DESTINATION_TMP_BUCKET} sync_dst:${DESTINATION_BUCKET} --delete-empty-src-dirs
35+
rclone --config=/etc/rclone.conf move sync_dst:${DESTINATION_TMP_BUCKET} sync_dst:${DESTINATION_BUCKET}
3636
else
3737
echo "=> Syncing from source..."
3838
rclone --progress $BW_LIMIT --config=/etc/rclone.conf sync sync_src:${SOURCE_BUCKET} sync_dst:${DESTINATION_BUCKET}

0 commit comments

Comments
 (0)