LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 02-17-2018, 09:35 PM   #1
parotta36
Member
 
Registered: Dec 2017
Location: Madurai
Distribution: Linux Mint | Slackware
Posts: 59

Rep: Reputation: Disabled
Directories to save while reinstalling for the same config files


I'm currently using Linux Mint 18.3 and want to use 18.1 but on the same root file system with all the same local configurations. But when I tried to use the existing root partition while installing 18.1 in a new boot partition, it said that it would delete directories like /usr, /var, /tmp etc... I want to know what all such files I should back up so that I could have the same experience even after a new install.
 
Old 02-17-2018, 09:53 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
what conf files have you changed personally? that'd be one type to save. as far as /usr /var/tmp not much in there worth saving in conf most are kept in /etc

you could run
Code:
sudo find / -type f -iname conf*
to see what prints out concerning config file of all sorts. just modify the path to check specific directories for config files.

most conf files you might be worried about are in your home dir some even are dot (hidden) files.
 
Old 02-18-2018, 01:13 AM   #3
treemouse
Member
 
Registered: Jan 2017
Posts: 30

Rep: Reputation: Disabled
Assuming you run as a normal user most of the time, most of the config files that affect your day-to-day experience (configuration of your desktop environment, configuration of your web browser, etc.) are going to be in your home directory.

These will mostly be hidden files (beginning with a .) so if you are backing up your home directory, be sure not to miss those! (Even if your home directory is in its own partition separate from your root partition, back it up anyway. That way if you make a mistake and format the wrong partition, you won't lose everything.)

Because you are downgrading, you will have some older software versions. There is a chance that they might not always properly read the config files produced by the newer version (options may have been added, formats may have been changed, etc.) so if you start getting error messages you may need to make some edits to your config files to make them compatible with the older software versions.
 
Old 02-18-2018, 02:02 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by parotta36 View Post
I'm currently using Linux Mint 18.3 and want to use 18.1
are you sure you got this the right way round?

Quote:
but on the same root file system with all the same local configurations. But when I tried to use the existing root partition while installing 18.1 in a new boot partition, it said that it would delete directories like /usr, /var, /tmp etc...
what exactly are you doing there?
install from scratch to the same partition without erasing it first?
iirc this was possible with some installers, maybe still is.

Quote:
I want to know what all such files I should back up so that I could have the same experience even after a new install.
you should probably make a complete clone of the whole drive, because afaics what you are doing there is unpredictable at best and destructive at worst.
 
Old 02-19-2018, 08:49 AM   #5
parotta36
Member
 
Registered: Dec 2017
Location: Madurai
Distribution: Linux Mint | Slackware
Posts: 59

Original Poster
Rep: Reputation: Disabled
Thank you.
I took a backup of my home in another partition and installed on the partition, that deleted all the files I wanted.
Unfortunately the backup tool didn't copy the subdirectories.
I'm marking this SOLVED.
 
Old 02-19-2018, 09:20 AM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by parotta36 View Post
Thank you.
I took a backup of my home in another partition and installed on the partition, that deleted all the files I wanted.
Unfortunately the backup tool didn't copy the subdirectories.
I'm marking this SOLVED.
what I do is
Code:
mv -v /dir -> to backup destanation
or
cp -rv /dir -> to backup destanation
cp -r is recurive so it copies everything including sub dir and its contents.
mv moves everything.

Last edited by BW-userx; 02-19-2018 at 09:21 AM.
 
Old 02-20-2018, 06:59 AM   #7
parotta36
Member
 
Registered: Dec 2017
Location: Madurai
Distribution: Linux Mint | Slackware
Posts: 59

Original Poster
Rep: Reputation: Disabled
Oh, thank you very much.
I'll definitely use this the next time!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Sub-Directories not picking up correct group permissions for new files/directories JockVSJock Linux - Newbie 4 05-07-2017 10:52 AM
Does a separate /bin and /opt partition keep programs save when reinstalling a distro? WaterCatapult Linux - General 11 02-13-2017 12:39 AM
[SOLVED] how to save needed modules config to create .config > compiled into kernel wargus Slackware 5 04-09-2011 05:22 AM
Utilities to facilitate backing up config files / changing directories to a NAS? Jukas Red Hat 1 03-01-2008 07:13 AM
Reinstalling Kernel to save system goldennuggets Linux - General 0 04-19-2004 06:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 09:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration