Skip to content

Commit bdc6508

Browse files
committed
update md
1 parent e6b418b commit bdc6508

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@
77

88
<br />
99

10-
## CMD 사용 예제 (`backup_github_full.cmd`)
10+
## 1. `CMD` 사용 예제 (`backup_github_full.cmd`)
1111

1212
<br />
1313

14-
### **기본 사용 (OutDir 미지정 → 현재 폴더에 백업 생성)**
14+
### 1.1. 기본 사용 (OutDir 미지정 → 현재 폴더에 백업 생성)
1515

1616
```cmd
1717
backup_github_full.cmd https://github.com/j2doll/discussion.git
1818
```
1919

2020
동작:
2121

22-
* `GITHUB_TOKEN` 없음 → **LITE 모드**
23-
* 실행 전에 아래와 같이 표시:
22+
- `GITHUB_TOKEN` 없음 → **LITE 모드**
23+
- 실행 전에 아래와 같이 표시:
2424

2525
```
2626
Detected mode: LITE
@@ -32,7 +32,7 @@ backup_github_full.cmd https://github.com/j2doll/discussion.git
3232

3333
---
3434

35-
### **출력 경로 지정**
35+
### 1.2. 출력 경로 지정
3636

3737
```cmd
3838
backup_github_full.cmd https://github.com/j2doll/discussion.git D:\GH_Backups
@@ -48,7 +48,7 @@ D:\GH_Backups\discussion_backup\
4848

4949
---
5050

51-
### **FULL 모드 실행 (환경 변수 GITHUB_TOKEN 사용)**
51+
### 1.3. `FULL` 모드 실행 (환경 변수 `GITHUB_TOKEN` 사용)
5252

5353
```cmd
5454
setx GITHUB_TOKEN "ghp_XXXXX"
@@ -57,8 +57,8 @@ backup_github_full.cmd https://github.com/j2doll/discussion.git
5757

5858
동작:
5959

60-
* 토큰 감지 → FULL 모드
61-
* 실행 전 메시지:
60+
- 토큰 감지 → FULL 모드
61+
- 실행 전 메시지:
6262

6363
```
6464
Detected mode: FULL
@@ -70,7 +70,7 @@ backup_github_full.cmd https://github.com/j2doll/discussion.git
7070

7171
---
7272

73-
### **CMD 내에서 PowerShell 없이 강제 LITE만 실행하고 싶을 때**
73+
### 1.4. `CMD` 내에서 `PowerShell` 없이 강제 `LITE` 실행하고 싶을 때
7474

7575
(의도적으로 메타데이터 백업 생략)
7676

@@ -83,33 +83,33 @@ backup_github_full.cmd https://github.com/j2doll/discussion.git
8383

8484
---
8585

86-
## PowerShell 사용 예제 (`backup_github_full.ps1`)
86+
## 2. `PowerShell` 사용 예제 (`backup_github_full.ps1`)
8787

88-
### **기본 사용 (OutDir 미지정 → 현재 폴더)**
88+
### 2.1. 기본 사용 (`OutDir` 미지정 → 현재 폴더)
8989

9090
```powershell
9191
pwsh .\backup_github_full.ps1 -RepoUrl "https://github.com/j2doll/discussion.git"
9292
```
9393

9494
<br />
9595

96-
### **출력 경로 지정**
96+
### 2.2. 출력 경로 지정
9797

9898
```powershell
9999
pwsh .\backup_github_full.ps1 -RepoUrl "https://github.com/j2doll/discussion.git" -OutDir "D:\GH_Backups"
100100
```
101101

102102
<br />
103103

104-
### **FULL 모드 (토큰 직접 지정)**
104+
### 2.3. `FULL` 모드 (토큰 직접 지정)
105105

106106
```powershell
107107
pwsh .\backup_github_full.ps1 -RepoUrl "https://github.com/j2doll/discussion.git" -Token "ghp_XXXXX"
108108
```
109109

110110
<br />
111111

112-
### **FULL 모드 (환경 변수 이용)**
112+
### 2.4. `FULL` 모드 (환경 변수 이용)
113113

114114
```powershell
115115
$env:GITHUB_TOKEN="ghp_XXXXX"
@@ -118,23 +118,23 @@ pwsh .\backup_github_full.ps1 -RepoUrl "https://github.com/j2doll/discussion.git
118118

119119
<br />
120120

121-
### **Discussions까지 포함 백업 (토큰 필요)**
121+
### 2.5. `Discussions`까지 포함 백업 (토큰 필요)
122122

123123
```powershell
124124
pwsh .\backup_github_full.ps1 -RepoUrl "https://github.com/j2doll/discussion.git" -IncludeDiscussions
125125
```
126126

127127
<br />
128128

129-
### **ZIP 압축까지 생성**
129+
### 2.6. `ZIP` 압축까지 생성
130130

131131
```powershell
132132
pwsh .\backup_github_full.ps1 -RepoUrl "https://github.com/j2doll/discussion.git" -Zip
133133
```
134134

135135
<br />
136136

137-
### **CMD에서 코드+위키 백업 후, PS에서 메타데이터만 실행 (MetaOnly)**
137+
### 2.7. `CMD`에서 코드+위키 백업 후, `PS`에서 메타데이터만 실행 (`MetaOnly`)
138138

139139
(일반적으로 CMD가 내부적으로 자동 호출할 때 사용)
140140

@@ -146,15 +146,15 @@ pwsh .\backup_github_full.ps1 -RepoUrl "https://github.com/j2doll/discussion.git
146146

147147
---
148148

149-
## 🔍 요약
149+
## 3. 요약
150150

151-
| 상황 | CMD 예제 | PS 예제 |
151+
| 상황 | `CMD` 예제 | `PS` 예제 |
152152
| --------------- | ------------------------------------ | ---------------------------------------------- |
153153
| 기본 백업 | `backup_github_full.cmd URL` | `pwsh .\backup_github_full.ps1 -RepoUrl "URL"` |
154154
| 출력 경로 지정 | `backup_github_full.cmd URL D:\path` | `-OutDir "D:\path"` |
155-
| FULL 모드 (TOKEN) | `setx GITHUB_TOKEN "xxx"` 후 실행 | `-Token "xxx"` 또는 `$env:GITHUB_TOKEN="xxx"` |
156-
| Discussions까지 | (CMD에서 가능) | `-IncludeDiscussions` |
157-
| ZIP 생성 | (CMD에서 수동 압축) | `-Zip` |
155+
| `FULL` 모드 (`TOKEN`) | `setx GITHUB_TOKEN "xxx"` 후 실행 | `-Token "xxx"` 또는 `$env:GITHUB_TOKEN="xxx"` |
156+
| `Discussions`까지 | (`CMD`에서 가능) | `-IncludeDiscussions` |
157+
| `ZIP` 생성 | (`CMD`에서 수동 압축) | `-Zip` |
158158

159159
---
160160

0 commit comments

Comments
 (0)