Synchronize home folder from old to new computer

Baldi Giovanni

New Member
Joined
May 25, 2019
Messages
6
Reaction score
0
Credits
49
I need to migrate some user to new Workstation with Ubuntu 18.04 and i would like to to synchronize their home folder, data and personal settings(ie bashrc,wallpaper,favourite....etc..). The new profile wiill use a new name convention si basically the command i was thinking to run from the old computer is:

rsync -avz /home/user/ [email protected]:/home/name.surname/

is correct? tanks in advance for any advice...
 


Hey there - welcome to the forum!

That looks good as long as name.surname is the new format. I'd also add a --progress in there so it shows progress on larger files and you know that it hasn't stalled.. also, i'm assuming you're running it locally to the old filesystem.. (/home/user/ being the old format).

rsync -avz --progress /home/user/ [email protected]:/home/name.surname/

Edit: one thing you will run into is you'll have to set the correct ownership/permissions to the files once they're on the new server - this is somehing you can likely script based on the name of the /home/$user filename, since it's also their username..
 
Last edited:

Members online


Latest posts

Top