by shigemk2

当面は技術的なことしか書かない

aws s3 sync タイムスタンプ

  • s3 syncはファイルのサイズとタイムスタンプを比較する
  • デフォルトでは、ファイルサイズが同一でもローカルファイルがS3ファイルより古い場合は更新しない(≒ローカルがS3より新しい場合以外は無視する)
    • 英語がわかりづらい

--exact-timestamps (boolean) When syncing from S3 to local, same-sized items will be ignored only when the timestamps match exactly. The default behavior is to ignore same-sized items unless the local version is newer than the S3 version.

docs.aws.amazon.com

dev.classmethod.jp