Score:0

How to rsync owner group from server A to server B?

al flag

I transfer a huge data (about 1 TB) from server "A" to server "B" (more than 100 websites) with rsync command:

rsync -Pva -e 'ssh -p 22' --progress --no-perms --no-owner --no-group --delete --exclude 'html' --exclude 'httpd-*' --exclude 'php-*' /var/www/ root@111.111.111.111:/var/www/

Each website on server "A" has an unique owner and group. They should be the same on server "B", but the problem is that all files and directories became root/root (owner/group) on server "B" after rsync.

Is any way to sync only owner and group for files and directories without transfering all data again? Maybe --update parameter could help?

I'm expecting to get the same owner and group on server "B" as on server "A".

ar flag
Which distro and version of Linux are you using?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.