I need to reinstall Ubuntu but keep ./Downloads
, ./Documents
folders of previous installation.
Everything else needs to be in pristine condition like first time installation
that means no .gitconfig, .gitignore, .gemrc, .npmrc, .bashrc, .bash_profile, and other settings file and previous installed apps, files or folders except
./Downloads
and.Documents
.
Removing these files manually looks a bit tedious, Is there any better way?
I tried the solutions provided here and here but that solution keeps the home
folder intact, thus keeping many unnecessary files/folders from previous installation.
You can reinstall Ubuntu and keep your existing
/home
directory, by booting a Ubuntu 16.04.1 Live DVD, and choosing Something Else, choosing your existing Ubuntu partition to reinstall into, and unselecting format partition.Also you can install SystemBack and backup all your ubuntu system or part of it. You choose what you want.
You save it as a
.iso
file and install it like usually (usb
orcd
).Here you could choose what to install on your ubuntu iso. You can add all your applications, session, configurations or just choose your personal data (photos, files,etc).
In terminal: