2020年9月14日星期一

rclone 开机自动挂载 Debian/Ubuntu/Centos

 转自 

https://p3terx.com/archives/linux-vps-uses-rclone-to-mount-network-drives-such-as-onedrive-and-google-drive.html#toc_6


开机自动挂载

  • 下载并编辑自启脚本
wget -N git.io/rcloned && nano rcloned
  • 修改内容:
NAME="Onedrive" #Rclone配置时填写的name
REMOTE=''  #远程文件夹,网盘里的挂载的一个文件夹,留空为整个网盘
LOCAL='/Onedrive'  #挂载地址,VPS本地挂载目录
  • 设置开机自启
mv rcloned /etc/init.d/rcloned
chmod +x /etc/init.d/rcloned# Debian/Ubuntu用下面
update-rc.d -f rcloned defaults 
# CentOS用下面chkconfig rcloned on bash /etc/init.d/rcloned start

看到 [信息] rclone 启动成功 ! 即可。

管理

开始挂载 bash /etc/init.d/rcloned start

停止挂载 bash /etc/init.d/rcloned stop

重新挂载 bash /etc/init.d/rcloned restart

查看日志 tail -f /$HOME/.rclone/rcloned.log

卸载自启挂载

bash /etc/init.d/rcloned stop
update-rc.d -f rcloned remove # Debian/Ubuntu
chkconfig rcloned off # CentOS
rm -f /etc/init.d/rcloned

参考资料

rclone 官方文档

在 Debian/Ubuntu 上使用 rclone 挂载 OneDrive 网盘

没有评论:

发表评论

转-汇丰香港开户详细教程(无须中介)

https://www.nodeseek.com/post-265532-1 汇丰香港,作为一家外资银行,同时也是香港三大具备发钞资格的银行之一,其全球业务网络广泛覆盖80余个国家和地区,稳居全球银行业前列。在香港开设银行账户时,汇丰香港是必开的香港银行账户之一。 一、开户前准备...