2017-04-03 72 views
-1

我在內部有~18GB的照片/視頻,我正嘗試通過Rsync移動到我的外部。我最初嘗試過:Rsync從內部硬盤到外部硬盤的照片

sudo rsync -avh --progress --delete /Non-system files/Photo.photoslibrary/ 
/#2/Text_photos/ 

但沒有骰子,「沒有這樣的文件」的錯誤。我想,也許.photoslibrary必須是一個文件夾中,所以我感動到「照片」中的非系統文件夾,然後嘗試:

sudo rsync -avh --progress --delete /Non-system files/photos/ 
Photo.photoslibrary/ /#2/Text_photos/ 

我仍然得到同樣的錯誤:

rsync: link_stat "/Non-system" failed: No such file or directory (2) 
rsync: link_stat "/Users/jcb_carrillo/files/photos/Photos" failed: No such file 
or directory (2) 

所以我注意到了兩件事,但不知道它爲什麼會反應它的方式。 1.它沒有讀取我的分區中的空間「非系統文件」,它只讀取「非系統」。

And 2.一旦出現「沒有這樣的文件或目錄」的第一個錯誤,它出於某種原因移動到「/用戶/ jcb_carrillo /文件/照片/照片」,這是在一個完全的其他分區,你可以看到在我的命令中,從來沒有被指定去那裏。

我認爲我的語法有問題。任何想法?

+1

你必須引用包含空格的路徑:'「/非系統文件/ ......」 ' –

回答

0

看起來你可能需要逃避的目錄名稱空白空間「非系統文件」

sudo rsync -avh --progress --delete /Non-system\ files/Photo.photoslibrary/ 
/#2/Text_photos/