我目前有一个托管我们内部Subversion存储库的
Linux机器.通过svn ssh访问此存储库,并对计算机上的用户帐户进行身份验证.我最近购买了一个闪亮的新盒子(也安装了Linux),并希望将subversion存储库转换到它(因为它在使用RAID 1 0配置的六个磁盘上有更多空间).
如何将所有用户,组和文件信息从当前计算机传输到新计算机,以便最大限度地减少对存储库当前用户的影响?我目前的想法是复制/ etc / passwd和/ etc / group文件(和影子文件?)中的相关条目,并复制/ home中的用户文件夹.有什么我想念的吗?
解决方法
从
cyberciti.biz article:
Following files/dirs are required for traditional Linux user management:
/etc/passwd – contains varIoUs pieces of information for each user
account/etc/shadow – contains the encrypted password information for user’s
accounts and optional the password
aging information./etc/group – defines the groups to which users belong
/etc/gshadow – group shadow file (contains the encrypted password for
group)/var/spool/mail – Generally user emails are stored here.
/home – All Users data is stored here.
You need to backup all of the above files and directories from old server to new Linux server.