[Switch] Ubuntu simple backup

1. Backup the list of installed packages

sudo dpkg --get-selections > /home/user/package.selections

2. Backup the user folder under Home

If you have put Home in an additional partition, this step is not necessary, copy All content in all user folders to another partition, be careful to include hidden files (Ctrl+Hide)

3. Backup the software source list, copy the sources.list under the /etc/apt/ folder and save it.

New system Recovery after installation:

1. Copy the backup Sources.list file to the /etc/apt/ directory of the new system, overwrite the original file, and replace (Ctrl+H) the intrepid in the document with jaunty. Then update the software sources (sudo apt-get update).

2. Re-download the software in the system before installation (if you have installed a lot of software, it may take a long time)

sudo dpkg –set-selections /home/package.selections && apt-get dselect-upgrade

3. Finally, Paste the backup home folder (/home/username) and overwrite the existing home folder

Well , with this method we can basically use a brand new Ubuntu system without losing the existing system and software settings!

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326990335&siteId=291194637