新增凤凰城节点

This commit is contained in:
zeaslity
2024-11-28 20:11:31 +08:00
parent c9f69d595e
commit 08a1cd52f6
34 changed files with 123 additions and 83 deletions

View 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