生命不息,折腾不止!

Viva La Vida

Rclone

https://downloads.rclone.org/

yum install nload fuse

cp -raf rclone /usr/bin/
chown root:root /usr/bin/rclone
chmod 755 /usr/bin/rclone
mkdir -p /usr/local/share/man/man1
cp -raf rclone.1 /usr/local/share/man/man1/
mandb

rclone config

/usr/bin/rclone mount DriveName:Folder LocalFolder \ –umask 0000 \ –default-permissions \ –allow-non-empty \ –allow-other \ –transfers 4 \ –buffer-size 32M \ –low-level-retries 200

fusermount -qzu LocalFolder

cat > /etc/systemd/system/rclone.service <<EOF [Unit] Description=Rclone After=network-online.target [Service] Type=simple ExecStart=/usr/bin/rclone mount DriveName:Folder LocalFolder \ –umask 0000 \ –default-permissions \ –allow-non-empty \ –allow-other \ –transfers 4 \ –buffer-size 32M \ –low-level-retries 200 Restart=on-abort User=root [Install] WantedBy=default.target EOF

参考 https://www.jiyiblog.com/archives/031167.html

点赞

发表评论

电子邮件地址不会被公开。 必填项已用*标注