[aklug] Re: tar overwriting

From: <bryanm@acsalaska.net>
Date: Sun Apr 10 2011 - 16:21:24 AKDT

On Sun, April 10, 2011 1:38 pm, Christopher Howard wrote:
>
> In other words, -p would use the permissions stored in the archive. But
> in my case I want the permissions used from the files that are about to
> be overwritten. In other words, lets say I had created file foo with
> permissions "rwx" but the foo in the archive has permissions "r-x". I do
> want the new foo from the archive to overwrite the old foo, but I want
> the new foo to have the permissions "rwx" (like the old foo).

A simple workaround would be to create a script with the commands
to change the permissions as you want them and just run the script
after each tar extraction.

--
Bryan Medsker
bryanm@acsalaska.net
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Sun Apr 10 16:21:34 2011

This archive was generated by hypermail 2.1.8 : Sun Apr 10 2011 - 16:21:34 AKDT