Date: Sun, 27 Jan 2008 17:37:34 +0000 From: "Alphons \"Fonz\" van Werven" <a.j.werven@student.utwente.nl> To: "Ivan \"Rambius\" Ivanov" <rambiusparkisanius@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: How to backup the users Message-ID: <479CC15E.4060701@student.utwente.nl> In-Reply-To: <89ce7f740801270905j15b85e8cm9b81cc31493c091@mail.gmail.com> References: <89ce7f740801270759l780e08aaw16710154bf1debe6@mail.gmail.com> <20080127172851.G3181@wojtek.tensor.gdynia.pl> <479CB34A.1060709@otenet.gr> <20080127115808.74051c27.wmoran@potentialtech.com> <89ce7f740801270905j15b85e8cm9b81cc31493c091@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Ivan "Rambius" Ivanov wrote: > I was only unsure how to proceed with the users backup. If users are the only thing you wish to back up: /home /etc/group /etc/master.passwd You can backup system files (/etc, /usr/local/etc, /var) if you want but that's another topic. Some hints: 1. Check if there are users who have their home-dir outside /home... 2. Check /tmp to see if users have files there (they shouldn't count on those being preserved, that's not what /tmp is for, but you might want to offer a little bit of extra service by doing this anyway) 3. There might be slight differences between the current /etc/group and /etc/master.passwd and the ones on the new system. So, instead of blindly copying the old ones onto the new system, I suggest you add the relevant entries in the old files to the new files by hand (or script). 4. If you copy the encrypted passwords, then users don't need to set a new password after you've reinstalled the system. 5. Keep track of UIDs/GIDs: you might need to do some chowning to give everybody their files back if their (numerical) UIDs/GIDs have changed. 6. If you don't need to repartition your disks, it might be an option to just leave /home alone during the reinstall (set the newfs flag to N). That leaves /home untouched and you can just mount it afterwards. Hth, Alphons -- VISTA - Viruses Intruders Spyware Trojans Adware
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?479CC15E.4060701>