Skip to main content

restore account from other partition

Comments

4 comments

  • andrew.n
    This is a manual process sadly requires some work. How is the rest of the folders like /usr, /var etc... are they the old ones? If so then you can just copy over the accounts folder to the new disk and thats it. If the rest of the folders lost and you have a new system with only the old /home folder retained then it requires some manual work and you lost the databases (as they are located outside of /home) sadly :(
    0
  • cPRex Jurassic Moderator
    As @andrew.n said, there isn't an easy way to do this. The best option would be to restore the accounts from a backup, but if you don't have that option it will be a lot of manual work to get things put back.
    0
  • jlucho
    the information is intact in "/oldroot/home/user1", but the user:group was changed to 1111:000, is there any way to assign the correct user:group in bulk? I'm thinking of creating a hosting with the same Username, then copying the information from "/oldroot/home/user1" to "/home/user1", but how do I restore the file owner names in bulk? so that they are the correct ones for hosting?
    0
  • andrew.n
    I usually use this script to set the right permissions:
    0

Please sign in to leave a comment.