Skip to content

Instantly share code, notes, and snippets.

@UVJkiNTQ
Created June 24, 2022 13:34
Show Gist options
  • Save UVJkiNTQ/ae4282e8f9fe4e45b3144b57605b4178 to your computer and use it in GitHub Desktop.
Save UVJkiNTQ/ae4282e8f9fe4e45b3144b57605b4178 to your computer and use it in GitHub Desktop.
示例脚本
#!/bin/sh
while read LINE; do
# 请在do与done之间写下需要执行的语句,为了避免错误,文件对象请使用绝对路径。
# 以下是一些例子,主要为一些主流的备份工具
rclone copy ${LINE} [remote:remote_dir]
# rclone支持多种网盘及对象存储,详见:https://github.com/rclone/rclone
bypy upload ${LINE} [remote_dir]
# bypy支持百度网盘的上传下载,详见:https://github.com/houtianze/bypy
fake115uploader -m ${LINE} [remote_dir]
# fake115uploader支持115网盘的上传,详见:https://github.com/orzogc/fake115uploader
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment