Help us understand the problem. What is going on with this article?

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

More than 3 years have passed since last update.

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

ダウンロード

指定パス内のファイルを全て再帰的に
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
Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away