Skip to content

Commit

Permalink
confirmed working automic setup
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Apr 16, 2024
1 parent 5d0066b commit c5aaff8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mirror-s3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ fi
if [ -n "$DO_ATOMIC" ]; then
echo "== ATOMIC MODE ENABLED =="
echo "=> Syncing from source..."
rclone --progress $BW_LIMIT --config=/etc/rclone.conf sync sync_src:${SOURCE_BUCKET} sync_dst:${DESTINATION_TMP_BUCKET}
rclone --progress $BW_LIMIT --config=/etc/rclone.conf sync sync_src:${SOURCE_BUCKET} sync_dst:${DESTINATION_TMP_BUCKET} --compare-dest=sync_dst:${DESTINATION_BUCKET}
echo "=> Moving..."
rclone --config=/etc/rclone.conf move sync_dst:${DESTINATION_TMP_BUCKET} sync_dst:${DESTINATION_BUCKET} --delete-empty-src-dirs
rclone --config=/etc/rclone.conf move sync_dst:${DESTINATION_TMP_BUCKET} sync_dst:${DESTINATION_BUCKET}
else
echo "=> Syncing from source..."
rclone --progress $BW_LIMIT --config=/etc/rclone.conf sync sync_src:${SOURCE_BUCKET} sync_dst:${DESTINATION_BUCKET}
Expand Down

0 comments on commit c5aaff8

Please sign in to comment.