s|mon Apprentice
Joined: 04 Jul 2004 Posts: 209 Location: Bayern [de]
|
Posted: Wed Dec 13, 2023 9:30 pm Post subject: comparing user-group info on cloned system (rsync) [closed] |
|
|
EDIT: nevermind - had a typo on the target path and did not see that all is created. Running rsync now and doing a check then what is affected,
i cloned a system using rsync -av with ssh from a pxe booted live image.
So far no major issues. Even ran a complete emerge --emptytree @world without major issues.
Having now both running i ran into some issues where the clone has different users/groups for some directories (e.g. currently i found it on /var/spool/cron/crontabs).
User and groups are identical (it is a clone and i also confirmed by checking the /etc/passwd and group files).
i can of course fix by using chown but i'd interested in finding out if there are more diffs in a structured manner (not run into a problem by chance).
So i tried doing a rsync on both running with
Code: |
rsync -avx --dry-run --itemize-changes --delete --group /var/spool/cron/ root@clone:/.snapshots/1/snapshot/var/spool/cron
|
Doing it on the first snapshot here as i did the chown on current state already.
This gives me
Quote: | cd+++++++++ crontabs/
| where i would have expected a "g" on position 8
while an ls -l give me
Quote: | drwx-wx--T 2 root crontab 4,0K Dec 6 15:47 crontabs/ | on source
Quote: | drwx-wx--T 1 root murmur 104 Dec 6 15:47 crontabs/ | on target
Where is my error (approach, execution) can i achieve the comparison with rsync or would there be a better approach? |
|