Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
comparing user-group info on cloned system (rsync) [closed]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
s|mon
Apprentice
Apprentice


Joined: 04 Jul 2004
Posts: 209
Location: Bayern [de]

PostPosted: Wed Dec 13, 2023 9:30 pm    Post subject: comparing user-group info on cloned system (rsync) [closed] Reply with quote

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?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum