OS2 World Community Forum
OS/2, eCS & ArcaOS - Technical => Networking => Topic started by: Neil Waldhauer on February 18, 2017, 09:48:46 pm
-
If I have a SAMBA server, and I want to migrate to new hardware, how can I transfer my users and groups from the old server to the new one?
-
Hi Neil,
If I have a SAMBA server, and I want to migrate to new hardware, how can I transfer my users and groups from the old server to the new one?
From memory, %unixroot%\etc - master.passwd pwd.db spwd.db groups
There may be other files, but they should all have a similar timestamp...
Cheers,
Paul
-
While Pauls comment is right, it omits the essential /samba/private directory.
I d suggest to use the builtin archive feature of b4smb.cmd - look into this file, it has a feature to take a complete Samba configuration snapshot upon each start.
The complete config is saved into a ZIP file, ready to be unzipped in a new environement.
In case the new server resides in a different place, make sure to change the paths in smb.conf accordingly.
Hope it helps,
Herwig
-
Thanks Paul and Herwig. I looked at b4smb.cmd, and it lacks the groups file, and backs up a few files that look extraneous, like *.pid. It looks like a great start for a backup/restore script.
I can see the backups on my system. I had not known they were there.