Article 6M25M Using rsync to mirror source w/ existing permissions but target has different users?

Using rsync to mirror source w/ existing permissions but target has different users?

by
That Random Guy
from LinuxQuestions.org on (#6M25M)
Basically, I'm trying to understand if it makes sense at all to use rsync between two hosts on a network that are both running their own tftp and nfs servers. Ideally, I'd be able to just mirror the contents of the existing nfs export directories on the source to the target, spin up the nfs server on the target, and all would work as it is currently working on the source. Same for tftp.

We can ignore any pre-existing network clients and their configuration for this... I'm more curious about the feasible implementation of this from the server perspective and having this just work as expected. I can always update the configs on the clients when needed but this migration of sorts has me kind of confused. We can also ignore any transport issues. These hosts can talk to each other fine.

The intent is not to have some kind of redundant HA sort of deployment but rather to move the data that is currently being served or present on the source host to the target and then decommission the source host once the services are running as expected. The services being nfs and tftp.

I did a little bit of reading and after inspecting the current hosts, I think I see a problem where using rsync would not help me do what I am thinking.

Right away, I notice that while both hosts have a dedicated tftp user that is used for the tftp daemon, they do not share the same UID on their respective system. This is also observed on the files/folders being served via tftp on the source.

Additionally, there are certain users who own certain files/folders under the nfs exports that do not already exist on the target host.

My current understanding is that while rsync can retain permissions from the source when mirroring to the target, unless the same users exist on the target, this will not work.

Has anyone had something like this come up before? or maybe someone can clarify?

P.S. - both hosts are running Ubuntu 20.04
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments