PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : RSYNC Problem



Snoogie2k
11.01.05, 14:56
Hallo,
ich habe ein Problem...
Nach einer RSYNC Kopie eines Servers sind die UID's ,die Groups und Owner "verbogen".
Gibt es ne Option wie ich die UID's etc wieder hinbiegen kann bzw. wie ich nochmal rsyncen kann, dass er die UID's usw wieder hinbiegt?
MFG
Snoogie2k

Tomek
11.01.05, 17:26
Siehe dazu die Manpage von rsync:

-p, --perms
This option causes rsync to set the destination permissions to be the same as the source permissions.

Without this option, each new file gets its permissions set based on the source file's permissions and
the umask at the receiving end, while all other files (including updated files) retain their existing
permissions (which is the same behavior as other file-copy utilities, such as cp).
und:

--numeric-ids
With this option rsync will transfer numeric group and user IDs rather than using user and group names
and mapping them at both ends.

By default rsync will use the username and groupname to determine what ownership to give files. The
special uid 0 and the special group 0 are never mapped via user/group names even if the --numeric-ids
option is not specified.

If a user or group has no name on the source system or it has no match on the destination system, then
the numeric ID from the source system is used instead. See also the comments on the "use chroot" set-
ting in the rsyncd.conf manpage for information on how the chroot setting affects rsync's ability to
look up the names of the users and groups and what you can do about it.