S3

概要

s3cmdではなくaws cliを使ったS3の操作方法をまとめます。

共通

プロファイルの場所

$HOME/.aws/ファイル

ドライラン

--dryrun 

コピー

特定ディレクトリ配下のファイルをコピー

$ aws --profile プロファイル名 s3 cp s3://バケット名/パス/ . --recursive --exclude "*" --include "*20180425*"

同期

バケット内のデータすべてを別のバケットへ同期

aws --profile testprofile s3 sync s3://test001-snapshot/ s3://test002-snapshot/



トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS