113
92

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 5 years have passed since last update.

【AWS S3コマンド】S3から複数ファイルを同時にダウンロード/アップロードする方法。

Last updated at Posted at 2016-10-12

いつも忘れるのでメモ。
実はこれでいける。

ダウンロード

指定パス内のファイルを全て再帰的に
aws s3 cp s3://test_bucket/test/ ./folder --recursive
*で対象ファイルを絞り込んで(*.txt)
aws s3 cp s3://test_bucket/test/ ./folder --exclude "*" --include "*.txt" --recursive
*で対象ファイルを絞り込んで(*.txtと*.dat)
aws s3 cp s3://test_bucket/test/ ./folder --exclude "*" --include "*.txt" --include "*.dat" --recursive

アップロード

指定フォルダ内のファイルを全て再帰的に
aws s3 cp ./folder s3://test_bucket/test/ --recursive
*で対象ファイルを絞り込んで(*.txt)
aws s3 cp ./folder s3://test_bucket/test/ --exclude "*" --include "*.txt" --recursive
*で対象ファイルを絞り込んで(*.txtと*.dat)
aws s3 cp ./folder s3://test_bucket/test/ --exclude "*" --include "*.txt" --include "*.dat" --recursive
113
92
1

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
113
92

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?