Linux MintThis forum is for the discussion of Linux Mint.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
It's my understanding that that upgrades aren't recommended for Linux Mint. Therefore, how do I save my settings and install them in the clean installed system? OR, put another way, where can I find the information on this topic?
HMW--
Thank you for the courtesy of your reply. Query: Where can I find step-by-step instructions?
Hi again!
Well, I don't know about step-by-step instructions. Maybe I did not express myself in a good way, but this is really simple. I'll try to break it down...
Insert removable media 1
Copy all the files you want to save to removable media 1
Insert removable media 2
Copy all the files you want to save (same files as to removable media 1) to removable media 2
Boot your PC with the installation media for the new Linux Mint version you wish to install
Do a clean install (wipe the drive)
After the installation, copy your saved files back to the new version of Linux Mint
^That's about the best I can do as far as step-by-step.
In other words, save everything you want to keep (probably your /home/<user> directory), not onto just one media, but at least two.
Bad advise to backup your complete /home/{user} folder! The difference between Mint 17.* and Mint 18 are too significant that there will be conflicts between program/configuration files versions.
Best is to only backup your important data (documents, photo's, Thunderbird mail folder, etc.) and do a fresh/clean/new installation.
Bad advise to backup your complete /home/{user} folder!
Where did I say that?
Quote:
In other words, save everything you want to keep (probably your /home/<user> directory)
(My emphasis)
Since I don't know what OP wants to keep, this was a suggestion, nothing more. As far as I'm concerned, OP can have files and directories just about anywhere in the filesystem that he/she wants to keep!
I also fail to see the harm in backing up the entire $HOME as long as you don't put everything from the old $HOME (including configuration files) back into the new $HOME. That kind of beats the whole purpose of doing a clean install in the first place!
It's my understanding that that upgrades aren't recommended for Linux Mint. Therefore, how do I save my settings and install them in the clean installed system? OR, put another way, where can I find the information on this topic?
For your info, the Mint team are working this month on an upgrade path from Linux Mint 17.3 to 18 and it will hopefully be available soon.
It's my understanding that that upgrades aren't recommended for Linux Mint. Therefore, how do I save my settings and install them in the clean installed system? OR, put another way, where can I find the information on this topic?
I see some answers regarding backing up DATA, but the original question is about backing up SETTINGS.
There is some important information lacking - such as:
What Desktop are you using? Cinnamon? Mate?
Are you installing the same Desktop?
Do you have a separate /home partition? Or a separate DATA partition?
The basic idea on backing up settings for programs like GIMP, Firefox, Seamonkey, Thunderbird, etc., is that the settings are stored in your current /home (wherever that is) in hidden files and folders. So in your file manager, activate the view for hidden files and you will see them. You can back up those folders, and restore them (carefully).
I just installed Mint 18, and migrated my settings from Mint 17.3, but I "cheated". I used a script I wrote to back up and re-install all my important settings to the new installation. It worked like a charm. I will post the scripts here, but you can only use them for a guide. They are highly customized for my programs and my Desktop (Cinnamon).
backup.sh - backup script
Code:
#!/bin/sh
# You will need a backup drive with at least 1GB available.
# Boot into the OS that you want to back up.
# make a folder on your backup drive "backupscript"
# save this file in the backupscript folder, as backup.sh
# right-click on the backupscript folder & open a terminal
# make the script executable with "sudo chmod u+x backup.sh"
# run the script with "sudo ./backup.sh"
# clean out unneeded .deb files:
aptitude autoclean
# copy all remaining .deb files -
# this eliminates excessive downloading when installing your programs
mkdir archives
cp /var/cache/apt/archives/*.deb ./archives/
# copy personal configuration and program configs
# if you use Firefox or Thunderbird you will want to add those to this list
# any programs you don't use can be deleted from this list
cp -a $HOME/.avidemux .
cp -a $HOME/.gconf .
cp -a $HOME/.config/Pinta .
cp -a $HOME/.config/smplayer .
cp -a $HOME/.config/vlc .
cp -a $HOME/.filezilla .
cp -a $HOME/.grsync .
cp -a $HOME/.icons .
cp -a $HOME/.local .
cp -a $HOME/.themes .
cp -a $HOME/.wallpapers .
cp -a $HOME/.mozilla/seamonkey .
cp -a $HOME/.asunder* .
cp -a $HOME/.bash_history .
# preserve my custom aliases in bashrc
cp -a $HOME/.bashrc .
cp -a $HOME/.gimp-2.8 .
cp -a $HOME/.config/google-chrome .
cp -a $HOME/bin .
# remove Firefox and Thunderbird
# I don't use them, and don't want frequent updates
apt-get --purge autoremove -y firefox firefox-locale-en
apt-get --purge autoremove -y thunderbird thunderbird-gnome-support
# copy your software sources
# I do this in order to restore my PPA's
cp -a /etc/apt .
# save installed software list
# WARNING "dpkg set-selections" should be used ONLY when migrating to the SAME version and desktop !!!
# otherwise you will trash the new system - at least that is my experience...
dpkg --get-selections > installed-software.list
# If you are using Cinnamon, backup the entire Cinnamon dconf
# includes the menu favorites, panel location, hot corners, etc.
dconf dump /org/cinnamon/ > dconf.org.cinnamon
# If you are using Cinnamon, backup the entire Nemo dconf
# preserves columns, views, bookmarks, and Desktop
dconf dump /org/nemo/ > dconf.org.nemo
echo DONE !
update.sh - restore script
Code:
#!/bin/sh
# save this file in the backupscript folder as update.sh
# make it executable with "sudo chmod u+x update.sh"
# boot into the newly installed OS
# establish wireless or cable internet connection
# Check Software Sources for fastest connection
# right-click on the backupscript folder & open a terminal
# run the script with "sudo ./update.sh"
# remove unused stuff e.g. firefox, thunderbird, and rare fonts
apt-get -y --purge autoremove firefox firefox-locale-en
apt-get -y --purge autoremove thunderbird thunderbird-gnome-support
apt-get -y --purge autoremove fonts-kacst fonts-kacst-one fonts-khmeros-core fonts-lao fonts-lklug-sinhala fonts-nanum fonts-sil-abyssinica fonts-sil-padauk fonts-takao-pgothic fonts-tibetan-machine fonts-tlwg-garuda fonts-tlwg-kinnari fonts-tlwg-loma fonts-tlwg-mono fonts-nanum fonts-tlwg-norasi fonts-noto fonts-tlwg-purisa fonts-tlwg-sawasdee fonts-tlwg-typewriter fonts-tlwg-typist fonts-tlwg-typo fonts-tlwg-umpush fonts-tlwg-waree ttf-indic-fonts-core ttf-punjabi-fonts ttf-wqy-microhei fonts-droid fonts-wqy-zenhei
# Get rid of the annoying "Warning: No support for locale: en_US.utf8"
dpkg-reconfigure locales
update-locale LANG=en_US.UTF-8
locale-gen --purge --no-archive
update-initramfs -u -k all
# copy all old .deb files
cp ./archives/*.deb /var/cache/apt/archives/
# install ubuntuzilla ppa (Seamonkey) and MultiSystem ppa (additional-repositories.list)
cp ./apt/sources.list.d/additional-repositories.list /etc/apt/sources.list.d/
# install ubuntuzilla ppa key
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C1289A29
# install MultiSystem ppa key
wget -q -O - http://liveusb.info/multisystem/depot/multisystem.asc | sudo apt-key add -
# copy Google Chrome ppa and install key
cp ./apt/sources.list.d/google-chrome.list /etc/apt/sources.list.d/
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
apt-get -y update
# install all the programs I use:
# -r = Treat recommendations as dependencies
aptitude -r install acetoneiso album apport-gtk asunder avidemux avidemux-plugins-gtk bluefish boot-info-script clipit cthumb dconf-tools filezilla flegita-gimp fsarchiver gimp glines gnome-brave-icon-theme gnome-color-chooser gnome-search-tool google-chrome-stable gparted gpick grml-rescueboot grml2usb grsync gsmartcontrol gtkhash gufw gwenrename hardinfo htop imagemagick-doc leafpad medit meld multisystem nemo-image-converter pithos pmount preload puddletag roxterm seamonkey-mozilla-build shutter smartmontools smplayer smtube swapspace xsane
# alternative installation command - only when cloning the SAME version and desktop:
# aptitude -r install $(cat installed-software.list | awk '{print $1}')
# clean out unused .deb files
aptitude autoclean
# restore personal configuration
cp -a .avidemux $HOME/
cp -a .gconf $HOME/
cp -a Pinta $HOME/.config/
cp -a smplayer $HOME/.config/
cp -a vlc $HOME/.config/
cp -a .filezilla $HOME/
cp -a .grsync $HOME/
cp -a .icons $HOME/
cp -a .local $HOME/
cp -a .themes $HOME/
cp -a .wallpapers $HOME/
cp -a seamonkey $HOME/.mozilla/
cp -a .asunder* $HOME/
cp -a .bash_history $HOME/
cp -a .gimp-2.8 $HOME/
cp -a google-chrome $HOME/.config/
# .bashrc contains my custom aliases
cp -a .bashrc $HOME/
# restore dconf settings (only if you use Cinnamon)
# "Perhaps first do a "dconf reset -f /org/cinnamon/" or "dconf reset -f /org/nemo/"
# to reset all values to their default, before you load the customized values"
# - was not necessary for me on a fresh install of Mint 17.3 Cinnamon
# might be necessary on a cloned OS
# This worked beautifully to restore a boatload of configuration!
dconf load /org/cinnamon/ < dconf.org.cinnamon
dconf load /org/nemo/ < dconf.org.nemo
# make symlinks to my themes
ln -s $HOME/.themes/Dans_BurntOrangeLonghorn /usr/share/themes/Dans_BurntOrangeLonghorn
ln -s $HOME/.themes/Dans_MintyGreen-V3 /usr/share/themes/Dans_MintyGreen-V3
ln -s $HOME/.themes/Dans_RainyDayBlues /usr/share/themes/Dans_RainyDayBlues
# create a mount point for my data partition:
mkdir $HOME/DATA_sda7
chown $USER:$USER $HOME/DATA_sda7
# add data partition to fstab
echo "# mount sda7 on /home/dan/DATA_sda7" | sudo tee -a /etc/fstab
echo "UUID=8f13cffd-fb93-4f54-92f6-9eec1f97cbd1 /home/dan/DATA_sda7 ext4 defaults,noatime 0 2" | sudo tee -a /etc/fstab
mount -a
echo Install Samsung printer and scanner drivers...
sleep 3
cd $HOME/bin/SamsungPrinter/uld/
./install.sh
cd $HOME
echo DONE !
echo Do you want to reboot now?
while true
do
echo -n "Please confirm y(es) or n(o):"
read CONFIRM
case $CONFIRM in
y|Y|YES|yes|Yes) break ;;
n|N|no|NO|No)
echo Aborting - you entered $CONFIRM
exit
;;
*) echo Please enter only y or n
esac
done
echo You entered $CONFIRM - rebooting...
shutdown -r now
Last edited by TxLonghorn; 07-13-2016 at 08:37 AM.
I see some answers regarding backing up DATA, but the original question is about backing up SETTINGS.
There is some important information lacking - such as:
What Desktop are you using? Cinnamon? Mate?
Are you installing the same Desktop?
Do you have a separate /home partition? Or a separate DATA partition?
The basic idea on backing up settings for programs like GIMP, Firefox, Seamonkey, Thunderbird, etc., is that the settings are stored in your current /home (wherever that is) in hidden files and folders. So in your file manager, activate the view for hidden files and you will see them. You can back up those folders, and restore them (carefully).
^True. I read 'data' where I should have read 'settings'.
O.S. -- LM 17.3 Cinnamon 64-bit
Cinnamon Ver. -- 2.8.8
Linux Kernel -- 3.13.0-24-generic
Yes, I will be installing the same desktop.
I do not believe that that I have separate /home or /data partitions -- seeing as I don't know how to create them.
So if I'm understanding you correctly, to save my Firefox settings -- which is what I'm primarily interested in -- I need to save the /home/.mozilla directory.
Open Firefox > Bookmarks > Show all bookmarks > Import & Backup > Export to .html > Give the file a name, such as bookmarks13JULY2016.html and select Desktop > Save.
You can now copy and paste the bookmarks13JULY2016.html to a USB flash drive.
In the new distro, plug in the USB drive and then copy and paste the .html file to your Desktop.
Open Firefox and this time select Import bookmarks from the file on Desktop.
Transferring a Firefox profile from one computer to another can be a pain if you have to do it manually. Sure, you can locate the firefox profile directory and then copy it to the new machine, but then it doesn’t automatically show up in the list, etc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.