[Samba] Move Samba AD member data to other host
rpenny at samba.org
Tue Sep 21 21:13:56 UTC 2021
On Tue, 2021-09-21 at 22:47 +0200, Viktor Trojanovic via samba wrote:
> I have a Samba AD member acting as a file server (idmap ad backend),
> works fine. I'm thinking about moving the data to another host,
> Ideally, I wouldn't lose any permissions in the process.
> I guess this is what I would try:
> 1. Set up the new host with a freshly installed Samba but with a copy
> the smb.conf of the other server.
> 2. Copy over all the data into the same directory path.
> 3. Join the domain
> Would this be sufficient? Will this work if I took over the old host
> for the new host? Anything else to worry about?
> Thanks for your pointers in advance.
I would do it a bit differently, set up a new Unix domain member using
exactly the same smb.conf as your old Unix domain Member (note you
don't need to use the same hostname and you do not need to set 'netbios
name'). Join the domain (which will ensure all your users and groups
are known on the new Unix domain member) and then use something like
rsync to transfer the data.
More information about the samba