Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Resource Forks...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Resource Forks...
Authored by: pxb on Sep 29, '07 01:01:29AM
Hi,

thanks for the warning about resource forks. On the duplicity website (http://duplicity.nongnu.org/new_format.html) they mention it being a limitation of the tar format it uses. However, the tar on OSX 10.4 is supposed to support Resource Forks, though whether this happens with the version of tar that duplicity uses, I don't know at present. I'll do some more research. I guess the simplest way would be to backup a file with known resource fork data and see what happens.

pxb

[ Reply to This | # ]
Resource Forks...
Authored by: Mechanist on Sep 29, '07 04:28:16PM

As far as I know it's correct that the tar file format doesn't support resource forks. What the Mac OS X version of tar does is transparently convert files with resource forks to "AppleDouble" format, which just means that the resource fork gets put into the data fork of a secondary file. So if foo.jpg has a resource fork, the tar file contains foo.jpg with no resource fork as well as ._foo.jpg, which is a data-fork file containing the resrouce-fork info. When you extract the file the forks are restored.

If duplicity makes use of the on-board Mac OS X version of tar then it should be OK for resource forks, but if it builds the files some other way then it probably isn't.



[ Reply to This | # ]