Re: how to (r)sync group-ownerships?



peter pilsl wrote:

My problem is:

After tar and retar some gids are wrong.

On the source-system the gid of a certain file was 101 and on the
target-system its now 102. This happenend for a unknown number of
files/directories. I've discoverered 4 such problems till now.

I'm looking for a way to set the gids on the targetsystem according to
the source-system without transferring/updating the files itself (the
content) cause its a huge number of files, a slow networkconnection and
the files on the targetsystems already have been alterers.

At your own risk: you could generate a script (on the source system) that
chowns the files with the appropriate owners, something eg like (on the
source system)

find /src/dir -type f -printf "chown %U:%G '%p'\n" > script.sh

(assuming /src/dir is what you tarred in the first place)

Then, on the target system, run script.sh in the directory where you
unpacked the tarball. Make sure that you understand what script.sh does, and
double / triple check that the filenames inside it make sense on the target
system in the directory from which you run it (which, as I said, should be
the one where you unpacked the tarball).

Also please note that the script assumes that your files do not have single
quotes in their names (other funny characters should be ok though).

--
D.
.



Relevant Pages

  • Re: ISM restore to different machine
    ... target step 19 is suspect. ... Steps used during imported restores using ISM ... Source system = eagles ... If informix is not listed then add it. ...
    (comp.databases.informix)
  • Re: Setting active drive/partition in XP
    ... Thanks - I'll try that on the target machines and see if the copy of the ... source system will then work. ... >> 'source' disk as the active disk when it is the only disk connected). ...
    (microsoft.public.windowsxp.general)