Backup And Restore Linux Desktop System Settings With Dconf


Get real time updates directly on you device, subscribe now.

Some time in the past, I’ve posted a information that defined the right way to reset a Linux desktop settings, tweaks and customization to default state with a single command. Right this moment, we’re going to learn to backup and restore Linux desktop system settings with Dconf instrument. This will probably be helpful once you wished to switch identical system settings after reinstalling your Linux desktop system, with out having to manually do them one after the other.

Set up Dconf On Linux

Dconf comes pre-installed in lots of Linux distributions. If it’s not put in already, you’ll be able to set up it utilizing the distribution’s default package deal supervisor relying upon the distribution you employ.

On Arch Linux, Manjaro Linux:

$ sudo pacman -S dconf

On Debian, Ubuntu, Pop OS, Linux Mint:

$ sudo apt set up dconf*

On CentOS / Fedora:

$ sudo yum set up dconf


$ sudo dnf set up dconf

On openSUSE:

$ sudo zypper set up dconf

Backup And Restore Linux Desktop System Settings With Dconf

Imagine or not, it is without doubt one of the best technique to backup and restore system settings with a simply single command.

To backup your present Linux desktop settings, all you need to do is:

$ dconf dump / > ostechnix-desktop

The above command will save all customization and tweaks you made in your system, together with the pinned purposes within the Dock or Unity launcher, desktop panel applets, desktop indicators, your system fonts, GTK themes, Icon themes, monitor decision, keyboard shortcuts, window button placement, menu and launcher behaviour and so forth., in a textual content file named ostechnix-desktop.

Please word that this command will solely backup the system settings. It received’t save settings of different purposes that doesn’t use dconf. Additionally, it received’t backup your private information both.

You possibly can view this file utilizing any textual content editors or cat command.

$ cat ostechnix-desktop

Right here is my Ubuntu 18.04 desktop settings:

view linux desktop system settings taken with dconf

Now reset your desktop settings to the manufacturing unit defaults with command:

$ dconf reset -f /

After operating the above command, your Linux desktop will flip into the outdated state once you put in it within the first time. Don’t panic! Your private information and put in purposes will nonetheless be intact.

To revive the System settings, merely do:

$ dconf load / < ostechnix-desktop

It’s that easy!!

Take a look on the following visible demo:

Hold the backup file in a secure place to make use of it later after reinstalling your Linux desktop. You can too use the identical backup to a number of methods that runs the identical OS model with identical set of purposes. For instance when you have one other Ubuntu 18.04 GNOME desktop, you need to use this identical file (i.e. ostechnix-desktop) to load the identical settings as in your present system.

It is usually attainable to backup and restore settings for particular desktop environments like GNOME, MATE, Cinnamon and so forth.

Backup and restore GNOME-specific settings solely

For instance, to backup and restore settings associated to GNOME shell, the command can be:

$ dconf dump /org/gnome/ > my_gnome_settings

Ensure you have point out the proper path of the DE in the event you a number of DEs in your system.

Reset to manufacturing unit defaults:

$ dconf reset -f /org/gnome/

To revive Gnome-only settings:

$ dconf load /org/gnome/ < my_gnome_settings

You possibly can even backup extra particular settings like desktop or window supervisor.

$ dconf dump /org/gnome/desktop/wm/preferences/ > old_wm_settings

Backup and restore MATE-specific settings solely

Backup settings:

$ dconf dump /org/mate/ > mate_settings

Reset to manufacturing unit defaults:

$ dconf reset -f /org/mate/

To revive settings:

$ dconf load /org/mate/ < mate_settings

Backup and restore settings of CINNAMON desktop solely

$ dconf dump /org/cinnamon/ > cinnamon_settings

Reset to manufacturing unit defaults:

$ dconf reset -f /org/cinnamon/

To revive settings:

$ dconf load /org/cinnamon/ < cinnamon_settings

For extra particulars, test man pages.

$ man dconf

Associated learn:

Hope this helps.

Thanks for stopping by!

Assist us that will help you:

Have a Good day!!

Source link

Leave A Reply

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More