On Thursday 14 January 2016 08:31:30 Nathan Stratton Treadway wrote: > On Wed, Jan 13, 2016 at 19:03:07 -0500, Gene Heskett wrote: > > The $64k question, Nathan, which doesn't seem to be defined in that > > link, is "does it record every nuance of a files permissions and > > attributes regardless?" > > True, the page doesn't specifically mention the "create" operation one > way or the other, but it seems to imply that when the archive is > created the info for each archive member is populated with all the > original file's correct info. (Various other options on that page > control how that info is used at extraction time.) > > To check, I took a quick look at the tar source code. The variable > that gets set by -p/--same-permissions is "same_permissions_option", > and searching for that string in all the source tree finds the only > places where that variable's contents are used are all in the > "extract.c" file -- supporting the theory that -p is ignored during > archive creation. > > (Just to be sure, you could always give it a try without the "-p" and > then check the archive with "tar -tv" to make sure the listing shows > the permissions you expect....) > > > Nathan
Removing the c seems to have fixed it, at least the report from my amanda wrapper script says its happy. tar -tv would need prefaced by a dd told to skip the first 32k as that is the amanda header containing where it came from and if its compressed type into. After skipping that 32k, the rest is a normal tar file, without the ending .tar. amanda, when doing the recovery, uses that data to compose the tar command to extract it to the correct place. I did do the tar -tvf on the added files, and it all looks good. Thanks Nathan. > ---------------------------------------------------------------------- >------ Nathan Stratton Treadway - [email protected] - Mid-Atlantic > region Ray Ontko & Co. - Software consulting services - > http://www.ontko.com/ GPG Key: > http://www.ontko.com/~nathanst/gpg_key.txt ID: 1023D/ECFB6239 Key > fingerprint = 6AD8 485E 20B9 5C71 231C 0C32 15F3 ADCD ECFB 6239 Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene>
