新增凤凰城节点
This commit is contained in:
20
0-部署应用/下载中心/youtube/2-家庭Rclone守护脚本.sh
Normal file
20
0-部署应用/下载中心/youtube/2-家庭Rclone守护脚本.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
video_file_path=/data/nfs-share/OneDriveSync/
|
||||
rclone_remote=office-wdd
|
||||
rclone_log_path=/data/rlone_sync/rclone-to-onedrive.log
|
||||
|
||||
rclone_sync_from_onedrive(){
|
||||
|
||||
echo "[$(date --rfc-3339=seconds | cut -d"+" -f1 | sed "s/ /-/g" | sed "s/:/-/g")] sync from OneDrive"
|
||||
rclone copy "$rclone_remote":/TransVideos "$video_file_path" -P >> $rclone_log_path
|
||||
|
||||
}
|
||||
|
||||
|
||||
while true; do
|
||||
|
||||
rclone_sync_from_onedrive
|
||||
sleep 15
|
||||
|
||||
done
|
||||
Reference in New Issue
Block a user