[Samba] Move Samba AD member data to other host

Rowland Penny 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:
> Hi,
> I have a Samba AD member acting as a file server (idmap ad backend),
> all
> works fine. I'm thinking about moving the data to another host,
> though.
> 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
> of
> 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
> name
> for the new host? Anything else to worry about?
> Thanks for your pointers in advance.
> Vic

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 mailing list