Friday, May 3, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1066  / 2 Years ago, tue, february 1, 2022, 3:17:13

On my current laptop, I have installed the /home in a separate partition, in the case I need to reinstall the OS, without having to backup and restore files and configurations.


My laptop is having hardware issues and my company bought me another, how can I backup the /home partition on the old laptop and restore to the new one?


More From » partitioning

 Answers
0

It is a matter of copying all files in the home directory, including the hidden files, while preserving linux file permissions (at least for the configuration files). Once the copy is made, check the ownership. If the user/group on the new system has a different UID than on the old system, you will need to adjust user and group ownerships.


I would be using rsync for that, but also cp is possible with the appropriate options set to preserve file properties. edit User Raj posted yet a third possibility using tar. An advantage is that this third method does not require that the target drive supports linux file permissions.


If this sounds difficult and exceeds your technical skills, then consider just copying your personal user data. That data is personal and not replacable. Hence it is the most valuable. You can then just reconfigure your new system where needed as you use it.


[#1161] Wednesday, February 2, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tersle

Total Points: 342
Total Questions: 109
Total Answers: 99

Location: Kazakhstan
Member since Mon, Sep 26, 2022
2 Years ago
tersle questions
Sat, Oct 23, 21, 00:33, 3 Years ago
Sat, Nov 20, 21, 09:58, 3 Years ago
Sun, Apr 17, 22, 23:01, 2 Years ago
Thu, May 11, 23, 22:57, 1 Year ago
Thu, Sep 22, 22, 22:14, 2 Years ago
;