用rsync備份很方便,之前寫過相關文章:
但rsync後面接的資料夾有空格的時候,指令會出問題。解決方法是用雙引號
LOCAL='/Volumes/Source'
REMOTE='/Volumes/Destination'
for FOLDER in 'folder with Space' 'folderWithoutSpace'
do
echo "{FOLDER}
/usr/bin/rsync -Cavubh --exclude='*~' --delete --delete-excluded "${LOCAL}/${FOLDER}" "${REMOTE}/"
done
上面的腳本是要備份的資料夾有兩個,一個名稱有空格另外一個沒有
參考資料
_EOF_
Beautiful render of a winter landscape, unreal engine, first light, majestic mountains, frozen lake, snow, dramatic clouds, encampment, soft light, by Greg Rutkowski, cgsociety
Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 7, Seed: 2203038982, Size: 512x256, Model hash: fc2511737a, Model: chilloutmix_NiPrunedFp32Fix, Version: v1.6.1
Time taken: 1 min. 42.7 sec.
A: 1.73 GB, R: 2.20 GB, Sys: 2.0/2 GB (100.0%)
沒有留言:
張貼留言