• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

ewwink/heroku-google-drive: Remote Google Drive client on Heroku using Rclone an ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

ewwink/heroku-google-drive

开源软件地址(OpenSource Url):

https://github.com/ewwink/heroku-google-drive

开源编程语言(OpenSource Language):

Shell 100.0%

开源软件介绍(OpenSource Introduction):

Heroku Google Drive

Remote Google Drive client on Heroku using Rclone and Aria2

Installation

Create new app

heroku create myapp -b https://github.com/ewwink/heroku-google-drive.git
heroku git:clone -a myapp

Existing app, use: add|set

heroku buildpacks:set https://github.com/ewwink/heroku-google-drive.git -a myapp

go to myapp directory, create or copy rclone.conf and winrar registraton key .rarreg.key (optional) then commit the change

cd myapp
git add .
git commit -am "add config"
git push heroku master

if you don't have rclone.conf download rclone and run locally rclone config generated config file will be

Windows: %userprofile%\.config\rclone\rclone.conf
Linux: $HOME/.config/rclone/rclone.conf

Usage

Open remote Heroku

cd myapp
heroku run bash
# or
heroku run bash --remote origin

Upload to Google Drive

assume gdrive_config is your Google drive config name that generated above

rclone -v copy local_dir gdrive_config:remote_drive_dir

Speed up upload

If you want to upload many files smaller than 8mb increase only --transfers option

rclone -v --transfers=16 --drive-chunk-size=16384k --drive-upload-cutoff=16384k copy local_dir gdrive_config:remote_drive_dir

--transfers=N number parallel of connection. default: 4

--drive-chunk-size=N if file bigger than this size it will splits into multiple upload, increase if you want better speed. default: 8192k or 8mb

--drive-upload-cutoff=N should be same with chunk size

-v option to view upload progress stats

view file on Google drive

rclone lsd gdrive_config:remote_drive_dir

view option:

lsd only show file in current directory

ls show file including in subdirectory (recursvely)

Bonus

Download file using Aria2

Aria2 is command-line download accelerator

aria2c -x4 http://host/file.rar

-x4 mean download using 4 connection

To extract .rar file

to current directory

unrar e file.rar

with full path

unrar x file.rar



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap