Created
July 4, 2014 16:26
-
-
Save emory/c7379799ec2fd3114676 to your computer and use it in GitHub Desktop.
One of two
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
----- Original message ----- | |
From: "Emory L." <emory@hellyeah.com> | |
To: Mac OS X enterprise deployment project <macenterprise@lists.psu.edu>, "adambarnett52@GMAIL.COM" <adambarnett52@gmail.com> | |
Subject: RE: Osx 10.9 tags | |
Date: Fri, 14 Mar 2014 13:33:02 -0500 | |
This is probably because your extended attributes and metadata aren't making it over. If you're using rsync from a Mac, the one Apple includes is not able to do this. | |
Recommended solution: install rsync 3.1.0, I use Homebrew to install it. I can't vouch for your destination filesystem and platform knowing what an extended attribute is, but it works for me against HFS+ and ZFS destinations on FreeBSD, OS X servers. | |
> Confirmation exercise: | |
> | |
> I have a markdown document that has some Mavericks tags assigned. I am going to use rsync to make a copy of it into my Documents folder, and I'll check tags on the file before and after the copy. | |
emory@stickwell ➠ Writing/Articles % mdls -name kMDItemUserTags Dear\ Prudence.md | |
kMDItemUserTags = ( | |
prudence, | |
articles, | |
writing, | |
letters | |
) | |
Great, my tags are there. | |
emory@stickwell ➠ Writing/Articles % /usr/local/bin/rsync -Ha -E --crtimes --fileflags --xattrs --acls Dear\ Prudence.md ~/Documents/ | |
Using my preferred version of rsync, I'm going to copy the file and preserve create times, extended attributes, ACLs and fileflags. Then I will see if my tags are still there. | |
emory@stickwell ➠ Writing/Articles % mdls -name kMDItemUserTags ~/Documents/Dear\ Prudence.md | |
kMDItemUserTags = ( | |
prudence, | |
articles, | |
writing, | |
letters | |
) | |
Victory \o/ ! My tags are still there on the copy. | |
This is a common problem with a lot of filesystem sync tools. Dropbox respects extended attributes and metadata like kMDItemUserTags, but GoogleDrive doesn't. BitTorrent Sync doesn't respect it either. | |
> Date: Fri, 14 Mar 2014 18:02:05 +0000 | |
> From: adambarnett52@GMAIL.COM | |
> Subject: Osx 10.9 tags | |
> To: MACENTERPRISE@LISTS.PSU.EDU | |
> | |
> Hi all | |
> | |
> Firstly want to thank everyone one on this list. It's is a great resource that make our lives a lot easier | |
> | |
> I was wondering if anyone has had any issues with tag. Especially when moving profiles from one machine to another. I've been rsync'ing via a linux sever the profile but that tags to not copy across ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment