본문 바로가기

IT/Internet

RClone - OneDrive 연결

 

RClone 다운로드 및 적당한 폴더에 압축 해제

https://rclone.org/downloads/

 

winfsp 다운로드 및 설치

https://winfsp.dev/rel/

 

 

CMD (비 관리자모드) 에서 설정 모드 실행

rclone config

 

No remotes found, make a new one?
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n

Enter name for new remote.
name> OneDrivePlex

Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
.....
34 / Microsoft OneDrive
   \ (onedrive)
.....

Storage> 34

Option client_id.
OAuth Client Id.
Leave blank normally.
Enter a value. Press Enter to leave empty.
client_id>

Option client_secret.
OAuth Client Secret.
Leave blank normally.
Enter a value. Press Enter to leave empty.
client_secret>

Option region.
Choose national cloud region for OneDrive.
Choose a number from below, or type in your own string value.
Press Enter for the default (global).
 1 / Microsoft Cloud Global
   \ (global)
 2 / Microsoft Cloud for US Government
   \ (us)
 3 / Microsoft Cloud Germany
   \ (de)
 4 / Azure and Office 365 operated by Vnet Group in China
   \ (cn)
region>

Edit advanced config?
y) Yes
n) No (default)
y/n> n

Use web browser to automatically authenticate rclone with remote?
 * Say Y if the machine running rclone has a web browser you can use
 * Say N if running rclone on a (remote) machine without web browser access
If not sure try Y. If Y failed, try N.

y) Yes (default)
n) No
y/n> y

2024/02/12 01:24:15 NOTICE: If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=lsb-i4gdIUE-6tivOlObbg
2024/02/12 01:24:15 NOTICE: Log in and authorize rclone for access
2024/02/12 01:24:15 NOTICE: Waiting for code...
2024/02/12 01:26:07 NOTICE: Got code
Option config_type.
Type of connection
Choose a number from below, or type in an existing string value.
Press Enter for the default (onedrive).
 1 / OneDrive Personal or Business
   \ (onedrive)
 2 / Root Sharepoint site
   \ (sharepoint)
   / Sharepoint site name or URL
 3 | E.g. mysite or https://contoso.sharepoint.com/sites/mysite
   \ (url)
 4 / Search for a Sharepoint site
   \ (search)
 5 / Type in driveID (advanced)
   \ (driveid)
 6 / Type in SiteID (advanced)
   \ (siteid)
   / Sharepoint server-relative path (advanced)
 7 | E.g. /teams/hr
   \ (path)
config_type> 1

Option config_driveid.
Select drive you want to use
Choose a number from below, or type in your own string value.
Press Enter for the default (ffe2c907dc9bc5c8).
 1 /  (personal)
   \ (ffe2c907dc9bc5c8)
config_driveid>

Drive OK?

Found drive "root" of type "personal"
URL: https://onedrive.live.com/?cid=ffe2c907dc9bc5c8

y) Yes (default)
n) No
y/n>

Configuration complete.

Keep this "OneDrivePlex" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d>

Current remotes:

Name                 Type
====                 ====
OneDrivePlex         onedrive

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> q

 

설정 파일 생성 및 계정 로그인이 완료된 후, 드라이브를 마운트해준다.

C:\rclone-v1.65.2-windows-amd64>rclone mount OneDrivePlex: X: --vfs-cache-mode writes
The service rclone has been started.