Do “tar””bzip2” commands preserve the attributes of decade-old Adobe Type1 PS Fonts well?
Good question. If they are special Mac attributes or resource forks, I'm not sure that tar would do this (I'm not sure it would not either - I do not know).
Then again, you could try using "rsync -e ssh --extended-attributes" (man rsync) over an ssh connection.
You could also use "ditto --extattr --rsrc" (man ditto) specifying "-" as the src_archive or dst_archive
It seems to me that “hdiutil” is designed to run locally. How to combine “hdiutil””scp” in one, so as to copy the finished disk images to remote volumes automatically.
I would look to ditto or rsync for doing this over the network.
Is there any way to use “find” or ”grep” or shell script or awk, or all the above, to exclude unwanted files, before executing “hdiutil” and/or “scp” commands?
I do not know about hdiutil. rsync can use --include-from or --exclude-from, and ditto can use a --bom file.
My suggestions on fixing “rsync””Broken Pie”:
Instead of starting SSH session from the client, with the source folders, start SSH session from the Server, with the destination folders, and log onto the client, so as to initiate the “rsync” session to synchronize the source and the destination folders.
If you are having network connection problems, it does not matter where the connection is initiated. You need to figure out why you are getting broken connections.
If your server is going to automatically reach out and pull files from the client, then that is fine. I actually us a utility called rsnapshot from a server to make backups for my Mom's iMac (300 miles away) over an ssh connection.
Note: Some of this stuff, I'm getting by reading the man pages for ditto and rsync. It would most likely take me a lot of experiments to figure out how to get exactly what I want. In this case, you get to experiment 🙂