Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ShahaRaz

macrumors newbie
Original poster
Jun 29, 2019
1
0
Hey, I’m trying to use rsync to create one folder with all my music collection in it.
i currently have the music spread on my Mac & on my backup hard drive.

I want to create a folder with all my music in it inside a new hard drive.

I used a smart-folder to locate all the music from my Mac&backup drive and it found it successfully from my Mac & my backup drive too.
1f642.png


Now I want to copy the files (newest versions of each file) to the external hard drive.
I used this command in the terminal:

rsync -avu /Users/ShahaRz 1/Library/Saved Searches/all music search.savedSearch/ /Rz4TBmyPass/All music/

[Rz4TBmyPass] is the hard drive name.


I don’t know what exactly went wrong, but the only thing it does is creating another music folder inside the music directory. [ at Macintosh HD>users>ShahaRz1>Music ]

The folder inside my Rz4TBmyPass isn’t changing at all, nor the space on this disc.

what can I do to make it work?

thanks for the help!
 
Last edited by a moderator:
This can't be made to work with 'rsync'.

A "Smart Folder" isn't a real folder or directory. Instead, it's the results of a search. The Finder just shows it as a folder.

Since it's not a real folder or directory, 'rsync' can't copy it.


Also, you didn't quote the pathname strings in the command-line you gave. The command thus contains a different pathname every time you have a space, and 'rsync' interprets them as multiple items to be copied to a directory named "music/" in the current working directory. Since none of the items named actually exist, all 'rsync' can do is create the destination directory.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.