小江 の 笔记

Qbittorrent自动上传脚本

新建个sh

qbittorrent-up.sh


#! /bin/bash

file=$1

cloudName=google
cloudFolder=Qb临时目录

software=rclone
transfers=16

if [ -d "${file}" ];then
	${software} copy --transfers=$transfers "$1" ${cloudName}:${cloudFolder}/"$2" 
elif [ -f "${file}" ]; then
	${software} copy "$1" ${cloudName}:${cloudFolder}/ 
fi

配合rclone或者flcone使用