rclone 설치 및 설정 가이드

S3 Glacier Deep Archive 백업에 필요한 rclone 설치, IAM 권한, config 설정, 버킷 생성까지 단계별 안내. 업데이트: 2026-03-10


핵심 요약

구분내용
📖 목적rclone으로 S3 Glacier Deep Archive에 백업하기 위한 환경 구성
💡 핵심IAM 최소 권한 + DEEP_ARCHIVE 스토리지 클래스 지정이 핵심
🎯 권장 chunk-size256M — 5TB 파일까지 안전하게 멀티파트 처리
⚠️ RAM 요구사항transfers × upload-concurrency × chunk-size 만큼 필요 (기본값 8GB 이상 권장)

목차

  1. rclone 설치
  2. AWS IAM 권한 설정
  3. rclone config 설정
  4. 버킷 생성
  5. 멀티파트 업로드 파라미터 가이드

1. rclone 설치

# Linux / macOS
curl https://rclone.org/install.sh | sudo bash
 
# Windows (winget)
winget install Rclone.Rclone
 
# 버전 확인
rclone version

2. AWS IAM 권한 설정

rclone 전용 IAM 사용자를 생성하고 최소 권한만 부여한다.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "s3:PutObject",
        "s3:GetObject",
        "s3:DeleteObject",
        "s3:ListBucket",
        "s3:HeadObject",
        "s3:RestoreObject"
      ],
      "Resource": [
        "arn:aws:s3:::my-deeparchive-backup",
        "arn:aws:s3:::my-deeparchive-backup/*"
      ]
    }
  ]
}

3. rclone config 설정

rclone config
# ~/.config/rclone/rclone.conf
 
[glacier-seoul]
type = s3
provider = AWS
access_key_id = YOUR_ACCESS_KEY_ID
secret_access_key = YOUR_SECRET_ACCESS_KEY
region = ap-northeast-2
storage_class = DEEP_ARCHIVE

대화형 설정에서 스토리지 클래스 선택:

Storage class to use when storing new objects in S3.
 7 / Glacier Deep Archive storage class
   \ "DEEP_ARCHIVE"
storage_class> 7

4. 버킷 생성

aws s3api create-bucket \
  --bucket my-deeparchive-backup \
  --region ap-northeast-2 \
  --create-bucket-configuration LocationConstraint=ap-northeast-2

5. 멀티파트 업로드 파라미터 가이드

파라미터권장값이유
--s3-chunk-size256M5TB 파일까지 안전 (10,000파트 제한 회피)
--s3-upload-concurrency4~8병렬 파트 업로드. 메모리와 트레이드오프
--transfers4동시 파일 전송 수
--buffer-size64M~128M파일당 인메모리 버퍼
메모리 사용량 = transfers × upload-concurrency × chunk-size
예시 (4 × 8 × 256MB) = 8,192MB → RAM 8GB 이상 권장

RAM 부족 시: --transfers 2 + --s3-upload-concurrency 4 + --s3-chunk-size 128M


문서 탐색


참고 자료

출처URL신뢰도
rclone S3 공식 문서https://rclone.org/s3/★★★★★
rclone config 설정 공식https://rclone.org/s3/#configuration★★★★★
rclone 포럼 — Deep Archive 설정https://forum.rclone.org/t/s3-deep-archive-general-questions/44229★★★★☆