1. SSH 접속
– 나는 Windows를 사용하므로 Putty 프로그램을 이용하여 SSH에 접속 한다.
login as: [사용자 이름 입력]
test@192.168.0.3’s password: [암호 입력]
Synology strongly advises you not to run commands as the root user, who has the highest privileges on the system. Doing so may cause major damages to the system. Please note that if you choose to proceed, all consequences are at your own risk.
test@synology:~$
2. 관리자 권한 얻기
sudo -i
test@synology:~$ sudo -i
Password: [암호 입력]
root@synology:~#
3. /(root)로 이동
cd /
root@synology:~# cd /
Password: [암호 입력]
root@synology:/#
4. tmp 폴더로 이동
cd tmp
root@synology:/# cd tmp
root@synology:/tmp#
5. https://downloads.rclone.org/ 접속 후 최신 버전의 rclone 다운로드 URL 확인
1. SSH 접속
– 나는 Windows를 사용하므로 Putty 프로그램을 이용하여 SSH에 접속 한다.
login as: [사용자 이름 입력]
test@192.168.0.3’s password: [암호 입력]
Synology strongly advises you not to run commands as the root user, who has the highest privileges on the system. Doing so may cause major damages to the system. Please note that if you choose to proceed, all consequences are at your own risk.
test@synology:~$
2. 관리자 권한 얻기
sudo -i
test@synology:~$ sudo -i
Password: [암호 입력]
root@synology:~#
3. /usr/bin 으로 이동
cd /usr/bin
root@synology:~# cd /usr/bin
root@synology:/usr/bin#
4. rclone config 입력 » Enter
rclone config
root@synology:~# rclone config
5. rclone 설정 생성을 위해 ‘n’ 입력 » Enter
2023/02/02 23:31:45 NOTICE: Config file “/root/.config/rclone/rclone.conf” not found – using defaults
No remotes found, make a new one?
n) New remote : 새로운 리모트 만들기
s) Set configuration password
q) Quit config
n/s/q> n
3. 드라이브 이름 입력. 예 : ‘gdrive’ » Enter
Enter name for new remote.
name> gdrive
4. Google Drive를 찾는다 : 18번으로 확인 » ’18’ 입력 » Enter
Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
1 / 1Fichier
\ (fichier)
2 / Akamai NetStorage
\ (netstorage)
3 / Alias for an existing remote
\ (alias)
4 / Amazon Drive
\ (amazon cloud drive)
5 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, China Mobile, Cloudflare, ArvanCloud, DigitalOcean, Dreamhost, Huawei OBS, IBM COS, IDrive e2, IONOS Cloud, Liara, Lyve Cloud, Minio, Netease, RackCorp, Scaleway, SeaweedFS, StackPath, Storj, Tencent COS, Qiniu and Wasabi
\ (s3)
6 / Backblaze B2
\ (b2)
7 / Better checksums for other remotes
\ (hasher)
8 / Box
\ (box)
9 / Cache a remote
\ (cache)
10 / Citrix Sharefile
\ (sharefile)
11 / Combine several remotes into one
\ (combine)
12 / Compress a remote
\ (compress)
13 / Dropbox
\ (dropbox)
14 / Encrypt/Decrypt a remote
\ (crypt)
15 / Enterprise File Fabric
\ (filefabric)
16 / FTP
\ (ftp)
17 / Google Cloud Storage (this is not Google Drive)
\ (google cloud storage)
18 / Google Drive : 구글 드라이브
\ (drive)
19 / Google Photos
\ (google photos)
20 / HTTP
\ (http)
21 / Hadoop distributed file system
\ (hdfs)
22 / HiDrive
\ (hidrive)
23 / In memory object storage system.
\ (memory)
24 / Internet Archive
\ (internetarchive)
25 / Jottacloud
\ (jottacloud)
26 / Koofr, Digi Storage and other Koofr-compatible storage providers
\ (koofr)
27 / Local Disk
\ (local)
28 / Mail.ru Cloud
\ (mailru)
29 / Mega
\ (mega)
30 / Microsoft Azure Blob Storage
\ (azureblob)
31 / Microsoft OneDrive
\ (onedrive)
32 / OpenDrive
\ (opendrive)
33 / OpenStack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
\ (swift)
34 / Oracle Cloud Infrastructure Object Storage
\ (oracleobjectstorage)
35 / Pcloud
\ (pcloud)
36 / Put.io
\ (putio)
37 / QingCloud Object Storage
\ (qingstor)
38 / SMB / CIFS
\ (smb)
39 / SSH/SFTP
\ (sftp)
40 / Sia Decentralized Cloud
\ (sia)
41 / Storj Decentralized Cloud Storage
\ (storj)
42 / Sugarsync
\ (sugarsync)
43 / Transparently chunk/split large files
\ (chunker)
44 / Union merges the contents of several upstream fs
\ (union)
45 / Uptobox
\ (uptobox)
46 / WebDAV
\ (webdav)
47 / Yandex Disk
\ (yandex)
48 / Zoho
\ (zoho)
49 / premiumize.me
\ (premiumizeme)
50 / seafile
\ (seafile)
Storage> 18
5. 클라이언트 ID 입력 » Enter
Option client_id.
Google Application Client Id
Setting your own is recommended.
See https://rclone.org/drive/#making-your-own-client-id for how to create your own.
If you leave this blank, it will use an internal key which is low performance.
Enter a value. Press Enter to leave empty.
client_id> [클라이언트 ID 입력]
6. 클라이언트 보안 암호 입력 » Enter
Option client_secret.
OAuth Client Secret.
Leave blank normally.
Enter a value. Press Enter to leave empty.
client_secret> [클라이언트 보안 암호 입력]
7. ‘1’ 입력 » Enter
Option scope.
Scope that rclone should use when requesting access from drive.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
1 / Full access all files, excluding Application Data Folder. : 모든 파일에 액세스 할 수 있음
\ (drive)
2 / Read-only access to file metadata and file contents.
\ (drive.readonly)
/ Access to files created by rclone only.
3 | These are visible in the drive website.
| File authorization is revoked when the user deauthorizes the app.
\ (drive.file)
/ Allows read and write access to the Application Data folder.
4 | This is not visible in the drive website.
\ (drive.appfolder)
/ Allows read-only access to file metadata but
5 | does not allow any access to read or download file content.
\ (drive.metadata.readonly)
scope>
8. 아무것도 입력하지 않기 » Enter
Option service_account_file.
Service Account Credentials JSON file path.
Leave blank normally.
Needed only if you want use SA instead of interactive login.
Leading `~` will be expanded in the file name as will environment variables such as `${RCLONE_CONFIG_DIR}`.
Enter a value. Press Enter to leave empty.
service_account_file>
9. ‘n’ 입력 » Enter
Edit advanced config?
y) Yes
n) No (default) : 고급 설정 하지 않음
y/n> n
10. ‘n’ 입력 » Enter
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> n
11. config_token 얻기위한 명령어 복사해놓기.
Option config_token.
For this to work, you will need rclone available on a machine that has a web browser available.
For more help and alternate methods see: https://rclone.org/remote_setup/
Execute the following on the machine with the web browser (same rclone version recommended):
4. rclone 인증을 위해 config_token 얻기위한 명령어 붙여넣기 » Enter
구글에서 로그인하라고 나온다.
로그인하면 success 창이 나오는데 다시 명령 프롬프트 창으로 가자.
D:\rclone> [복사한 명령어 붙여넣기]
2023/02/03 00:06:58 NOTICE: Config file “C:\\Users\\mingg\\AppData\\Roaming\\rclone\\rclone.conf” not found – using defaults
2023/02/03 00:06:58 NOTICE: Make sure your Redirect URL is set to “http://127.0.0.1:53682/” in your custom config.
2023/02/03 00:06:58 NOTICE: If your browser doesn’t open automatically go to the following link: http://127.0.0.1:53682/auth?state=IRrcn1JkNGirtnAGRafPnA
2023/02/03 00:06:58 NOTICE: Log in and authorize rclone for access
제어판 » 작업 스케줄러 » 생성 » 트리거된 작업 » 작업 이름: 원하는대로 설정, 사용자: root, 이벤트: 부트업 » 작업 설정 » 사용자 정의 스크립트: /volume1/rclone/rclone_vfs.sh
rclone 설정 잘 된지 확인
1. SSH 접속
– 나는 Windows를 사용하므로 Putty 프로그램을 이용하여 SSH에 접속 한다.
login as: [사용자 이름 입력]
test@192.168.0.3’s password: [암호 입력]
Synology strongly advises you not to run commands as the root user, who has the highest privileges on the system. Doing so may cause major damages to the system. Please note that if you choose to proceed, all consequences are at your own risk.
test@synology:~$
2. 관리자 권한 얻기
sudo -i
test@synology:~$ sudo -i
Password: [암호 입력]
root@synology:~#
3. /usr/bin 으로 이동
cd /usr/bin
root@synology:~# cd /usr/bin
root@synology:/usr/bin#
4. rclone lsd 명령어로 확인
구글 드라이브에 만들어놓은 폴더들이 잘 보이면 활성화가 잘 된거다.
rclone lsd gdrive:
root@synology:/usr/bin# rclone lsd gdrive:
-1 2022-07-27 21:50:43 -1 Synology
-1 2022-12-20 11:54:44 -1 etc
관련 포스트
rclone 1.61.1 - Synology에 rclone vfs로 Google Drive 연결 - 현재글
rclone 1.58.1 - Synology에 rclone vfs로 Google Drive 연결
rclone - Google Drive API 설정
rclone 1.57.0 - Synology에 rclone vfs로 Google Drive 연결