---
title: onedrive-folder-structure
created: 2026-06-27
updated: 2026-06-27
type: concept
tags: [onedrive, backup, hermes-agent]
sources: [raw/articles/seomu-202606-history.md]
confidence: high
---

# OneDrive 폴더 구조 (rclone 기반)

## 기본 정보

| 항목 | 값 |
|---|---|
| 백엔드 | rclone (`onedrive:`) |
| Config | `~/.config/rclone/rclone.conf` |
| 인증 | OAuth (소장님 Microsoft 계정) |
| 동기화 | rclone 명령형 (자동 sync 없음) |

## 폴더 구조 (확인됨, 2026-06-27)

```
onedrive:/
├── (0)성성자이(천안)/
├── (1)장위자이(서울)/
├── (2)프로그램/
├── (3)관리/
├── (5)기성/
├── Microsoft Copilot Chat 파일/
├── PDF/
├── Videos/
├── Youtube/
├── blender/
├── cad/
├── construction-memo/
├── inspec/
├── sungsung/
├── telegram/                    ← Flask Agent 백업 위치
├── 개인 중요 보관소/
├── 기술자 특급 교안(1)/
├── 문서/
├── 바탕 화면/
├── 사진/
├── 성성자이_PDF_OCR완료/
├── 천안성성자이 사진/
├── 천안성성자이 사진(1)/
├── 천안성성자이 사진(2)/
├── 첨부 파일/
├── 코레일 예매/
├── 통신공사/
└── 파이썬배우기/
```

## telegram/ 폴더 (184개 파일, 2026-06-21 생성)

```
onedrive:/telegram/
├── CADian Pro 2023 매뉴얼/
├── v4_hermes_agent/
├── agent.py              ← OneDrive 백업 Flask Agent (토큰 25802580)
├── v4_hermes_agent.tar.gz
├── KakaoTalk_*.jpg
├── test_pdf.pdf
├── *.mp3, *.ogg, *.mp4
├── 검수-*.pdf
├── 검측-*.pdf
├── *.docx, *.xlsx, *.dxf
└── ...
```

## Youtube/ 폴더 (2026-06-25 신설)

```
onedrive:/Youtube/
├── channel_assets/        (프로필/배너/썸네일)
├── music/                 (MP3/OGG)
├── videos/                (MP4 풀영상)
├── shorts/                (9:16 쇼츠)
├── subtitles/             (SRT 자막)
└── metadata/              (JSON)
```

## rclone 명령 패턴

### 단일 파일 업로드

```bash
rclone copyto /local/file.txt onedrive:telegram/file.txt --progress=false
```

### 폴더 업로드

```bash
rclone copy /local/folder/ onedrive:Youtube/music/ --progress=false
```

### 목록 조회

```bash
rclone lsd onedrive:/         # 최상위 폴더
rclone ls onedrive:/telegram/  # 파일 목록
```

### 삭제 (주의)

```bash
rclone delete onedrive:/telegram/old.txt
# ⚠️ 휴지통 없음 — 즉시 삭제
```

## 업로드 규칙 (2026-06-25 확정)

| 자산 종류 | 경로 |
|---|---|
| Telegram 파일 (카톡 사진/PDF/Excel) | `onedrive:telegram/` |
| YouTube 채널 자산 | `onedrive:Youtube/channel_assets/` |
| YouTube 음악 | `onedrive:Youtube/music/` |
| YouTube 풀영상 | `onedrive:Youtube/videos/` |
| YouTube 쇼츠 | `onedrive:Youtube/shorts/` |
| YouTube 자막 | `onedrive:Youtube/subtitles/` |
| YouTube 메타데이터 | `onedrive:Youtube/metadata/` |

## 자동화 헬퍼 스크립트

| 스크립트 | 용도 |
|---|---|
| `~/.hermes/scripts/youtube_assets_upload.sh` | YouTube 자산 한 줄 업로드 |
| `~/.hermes/scripts/wd.sh` | 작업일보 → `telegram/` |
| `~/.hermes/scripts/dsr.sh` | DSR → `telegram/` |

## 주의사항

| # | 함정 |
|---|---|
| 1 | Windows 디렉토리 구분자 `\` (rclone는 `/` 사용) |
| 2 | 한글 폴더명 시 cp949 인코딩 깨짐 → ssh 출력은 자동 변환 |
| 3 | `rclone delete` → 휴지통 없음 (즉시 삭제) |
| 4 | 대용량 파일 (1GB+) 업로드 시 타임아웃 → `--timeout 60s` 명시 |

## 관련 페이지

- [[hermes-agent]]
- [[flask-kakao-agent]]
