[rclone] command line에서 서버 파일을 google drive로 옮기기
Rclone downloads
© Nick Craig-Wood 2014-2020 Source file downloads.md last updated 2020-08-18 Website hosted on a MEMSET CLOUD VPS, uploaded with rclone and built with Hugo. Logo by @andy23.
rclone.org
# rclone 다운 받기
curl https://rclone.org/install.sh | sudo bash
# config 수정
rclone config
# name은 필수로 지정해야 함
# 그 외 모든 건 디폴트 값으로 둬도 무방
# root_folder_id 는 설정해주면 편함
# auto config는 default가 yes인데 no 선택하기!
# 그 다음에 나오는 url 클릭하고 구글 로그인하면 됨
# 다 설정했으면 quit 하고 나오기
# 구글 드라이브로 파일 보내기
# root_folder_id로 설정해둔 그 폴더로 파일 보내짐
rclone copy [보낼파일path] [name]:
# --progress 옵션 주면 진행 상태 확인 가능
rclone --progress copy [보낼파일path] [name]:
# 반대로 드라이브에서 파일 가져오려면 순서만 바꾸면 됨
# 현재 위치로 가져오기
rclone --progress [name]:[드라이브 내 가져올 파일 이름] .
root_folder_id 설정하는 법
구글 드라이브에 들어가서 원하는 폴더 열고 folders/ 뒤에 나오는 숫자, 언더바, 영어 섞여있는 string이 id임
# sudo 없을 때 rclone 다운 받기
curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip
unzip rclone-current-linux-amd64.zip
cd rclone-*-linux-amd64
cp rclone /home/[username]/.local/bin
mkdir -p /home/[username]/.local/share/man/man1
cp rclone.1 /home/[username]/.local/share/man/man1
mandb
참고자료
Install
© Nick Craig-Wood 2014-2020 Source file install.md last updated 2020-08-08 Website hosted on a MEMSET CLOUD VPS, uploaded with rclone and built with Hugo. Logo by @andy23.
rclone.org
forum.rclone.org/t/root-access-required-for-full-functionality/117/2
Root access required for full functionality?
The first three steps on the guide for installing from precompiled binary on rclone.org/install is all you need: curl -O http://downloads.rclone.org/rclone-current-linux-amd64.zip unzip rclone-current-linux-amd64.zip cd rclone-*-linux-amd64 You can do all
forum.rclone.org
rclone : How to copy files from a server’s filesystem to Google Drive
Integrating with storage APIs is difficult, just rclone your way out of it.
medium.com