Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

aws cli s3 syncコマンドで差分を操る

Posted at

更新していないのに毎回アップロードされてしまう時

# ローカルの`dist`ディレクトリからs3の`bucket-name`バケットへファイルサイズを見てシンク
$ aws s3 sync --size-only dist s3://bucket-name

タイムスタンプが違っていたらアップロードしたい時

# ローカルの`dist`ディレクトリからs3の`bucket-name`バケットへタイムスタンプを見てシンク
$ aws s3 sync --exact-timestamps dist s3://bucket-name

参照

s3コマンドでsyncした時、更新していないのに毎回アップロードされてしまう

1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?