Proper way to restore user files/settings after an upgrade

I would love to install a fresh ubuntu 11.04 on my pc that has a couple of customer accounts I will certainly require to restore. I presently make use of 'Back in Time' to back up my information. I intend to see to it every person is account is maintained with their information and also setups and also was asking yourself if these back-ups will be adequate? If I restore their folders right into the new 'residence' folder on the fresh install, will this recreate their accounts and also setups? Or exists a far better means to complete this?

2022-06-07 15:16:11
Source Share
Answers: 1

Ideally, /home needs to get on a different partition. After that, when you install, define your dividings by hand. Set up your residence partition to live at /home and also see to it you do not layout it. After that, you need to have every little thing set up penalty.

If you do not have a different partition, you can make use of GParted to resize your partition and also create a/ residence partition (which need to generally be the biggest partition) as ext4 or ext3. After that, duplicate every little thing in /home to the new partition and also set up fstab.

# Assuming that the new partition has been created
# and formatted as ext4 and is known as /dev/sda2.
sudo mount /dev/sda2 /mnt
sudo cp -av /home/* /mnt  # The -a option is really important here; if you forget it, things will break.

# Verify that everything was copied correctly; then...
cd /home  # Make sure that nothing is using your home directory--not even the current working directory.
sudo rm -r /home/*
sudo umount /mnt && sudo mount /dev/sda2 /home

Then, add the adhering to line to /etc/fstab:

/dev/sda2    /home    ext4    relatime    0 2
2022-06-07 16:03:59