Notice
Recent Posts
Recent Comments
Link
반응형
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 무료 인스턴스
- multi module
- JSON type
- h2 연동
- Transactiona
- json type column 생성
- aws cli s3 cp
- 트랜잭션 전파속성
- jpa 환경에서 json type 활용하기
- IAM이란
- Jenkins
- mysql json type
- server mode
- jpa json type
- aws cli s3 exclude folder
- oracle cloud
- AWS IAM MFA
- 선언적 트랜잭션
- IAM MFA
- h2 intellij
- 프리티어 인스턴스
- in memory
- json type index
- spring boot 멀티모듈
- jenkins 배포
- Oracle Linux 8
- aws cli s3
- aws cli s3 exclude directory
- json type 활용
- 멀티모듈
Archives
- Today
- Total
Chris Devlog
[AWS]CLI S3 cp 디렉토리 제외하기 본문
반응형
1. AWS CLI 에 대한 기본 사용법 공식문서에서 확인
https://docs.aws.amazon.com/ko_kr/cli/latest/userguide/cli-services-s3-commands.html
AWS CLI에서 상위 수준(s3) 명령 사용 - AWS Command Line Interface
PowerShell을 사용하는 경우 셸은 CRLF의 인코딩을 변경하거나, 파이프 입력이나 출력 또는 리디렉션된 출력에 CRLF를 추가할 수 있습니다.
docs.aws.amazon.com
2. 버킷간 파일 복사시 특정 폴더 제외
# bucket_name: 복사할 버킷명
# bucket_name2: 붙여넣을 버킷명
# option 'recursive': 지정된 디렉터리 또는 접두사 아래의 모든 파일 또는 객체에 대해 명령이 수행
# option 'exclude': 명령에서 지정한 객체만 제외
# "images/*": 제외 대상으로 images 디렉토리 아래 모든 파일또는 객체
aws s3 cp s3://[bucket_name] s3://[bucket_name2] --recursive --exclude "images/*"
반응형
'Cloud Service > AWS' 카테고리의 다른 글
[AWS] IAM(2) - MFA (0) | 2022.10.13 |
---|---|
[AWS] IAM(1) - 사용자 및 그룹 (0) | 2022.10.12 |
[AWS]CLI S3 bucket 전체 복사 (0) | 2022.08.02 |