네이버 클라우드같은 경우를 빼면 사실상 현존하는 모든 클라우드 스토리지 플랫폼을 지원한다.
설정에 나와있지 않은 클라우드 스토리지라도 FTP나 WebDAV를 지원하면 연결할 수 있고, 이 때문에 클라우드 스토리지 외에도 NAS나 파일 서버등에도 연결할 수 있다.
### 1
# 설치
sudo curl https://rclone.org/install.sh | sudo bash
### 2
# 설정시작
rclone config
### 3
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
### 4
# 사용할 이름 입력
name> GDrive
### 5
13 / FTP Connection
\ "ftp"
14 / Google Cloud Storage (this is not Google Drive)
\ "google cloud storage"
15 / Google Drive
\ "drive"
16 / Google Photos
\ "google photos"
17 / Hadoop distributed file system
\ "hdfs"
Storage> 15
### 6
# 공백 엔터
client_id>
### 7
# 공백 엔터
client_secret>
### 8
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"
scope> 1
### 9
# 공백 엔터
root_folder_id>
### 10
# 공백 엔터
service_account_file>
### 11
# 공백 엔터
Edit advanced config?
y) Yes
n) No (default)
y/n>
### 12
# 공백 엔터
Use auto config?
* Say Y if not sure
* Say N if you are working on a remote or headless machine
y) Yes (default)
n) No
y/n>
### 13
# 구글 드라이브 접근 허용
### 14
Configure this as a Shared Drive (Team Drive)?
# 팀 드라이브면 y 아니면 n or 공백
y) Yes
n) No (default)
y/n>
### 14
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y
### 15
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
### 16
# 연결 확인
# rclone lsd 4번에서 입력한 이름
# 이름 모르겠다면 rclone config 조회
rclone lsd GDrive:
### conf 위치
cd /Users/[username]/.config/rclone
# Use the official lightweight Python image.
# https://hub.docker.com/_/python
FROM python:3.10.7-slim
# Allow statements and log messages to immediately appear in the Knative logs
# ENV PYTHONUNBUFFERED True
# Copy local code to the container image.
ENV APP_HOME /app
WORKDIR $APP_HOME
COPY . ./
# Install production dependencies.
RUN pip install -r requirements.txt
# Run the web service on container startup. Here we use the gunicorn
# webserver, with one worker process and 8 threads.
# For environments with multiple CPU cores, increase the number of workers
# to be equal to the cores available.
CMD python ./run.py