Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How can I copy finder label colours using rsync?

I'm using Automator and Rsync to copy files from folder A 2 folder B.


Once I have finished with a file I change the file in finder to RED how can I use rsync to copy that infomation across?


This is how it works at the moment



Get specified Finder items

(Folder A)

Set Value of Variable

(source_Folder)

Get specified Finder items

(Folder A)

Set Value of Variable

(target_Folder)

Get Value of Variable

(source_Folder)

Get Value of Variable

(target_Folder)

Run shell Script


rsync -va "$1/" "$2/"

Posted on Feb 13, 2012 5:10 AM

Reply
Question marked as Best reply

Posted on Feb 13, 2012 5:20 AM

You want to tell rsync to copy the extended file attributes. if you're using the rxync that ships with OS X (2.6.x), that will be the -E option (rsync -vaE ...). if you've installed the latest version of rsync (3.0.x - I recommend this if you're unix savvy, because it handles extended attributes and resource forks better), then it will be the -X options (rsync -vaX ...).


note that specifying -v in automator is a little pointless, unless you like digging through log files...

5 replies
Question marked as Best reply

Feb 13, 2012 5:20 AM in response to MattJayC

You want to tell rsync to copy the extended file attributes. if you're using the rxync that ships with OS X (2.6.x), that will be the -E option (rsync -vaE ...). if you've installed the latest version of rsync (3.0.x - I recommend this if you're unix savvy, because it handles extended attributes and resource forks better), then it will be the -X options (rsync -vaX ...).


note that specifying -v in automator is a little pointless, unless you like digging through log files...

Feb 14, 2012 4:51 AM in response to twtwtw

That has got it working, i'm trying to copy my desktop to another computer desktop. i'd really like it if I could copy its position on the desktop and icons?.


Also if I delete a file can I have it get deleted on the otherside?


Currently my line looks like this


rsync -varE --exclude 'HotFolder' ~/Desktop/ shah@172.0.1.116:Desktop/

How can I copy finder label colours using rsync?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.