How to bakcup the LXDE configuration?

LXDE

LXDE is still a popular desktop environment, despite its age, although due to this you won't be able to do a quick backup by exporting stuff in Dconf.

Instead, if you want to keep the settings you have made to your LXDE desktop environment, they will need to create a full backup of the ~ / .config folder.

To be able to do this bakcup from LXDE We can do it by creating a compressed file of said folder so that we can more quickly and efficiently store this copy.

Entonces just run the following command to do it:

tar -cvpf copia-de-seguridad-.tar.gz ~/.config

Because when making this backup it includes the environment settings, as well as browsers and issues that could contain sensitive information we can add a security step to this copy, in order to protect the stored data.

This process can be optional.

So that we are going to use the GnuPG tool, which we can install with the following commands

Debian, Ubuntu, Linux Mint and derivatives:

sudo apt-get install gpg

Arch Linux

sudo pacman -S gnupg

Fedora

sudo dnf install gpg

OpenSUSE

sudo zypper install gpg

Done the download we are going to perform the encryption of this file with the following command:

gpg -c copia-de-seguridad.tar.gz

Here they must complete the password request that appears on their terminal to finish the encryption process.

So that they must assign a password that they remember and is good. When encryption is complete, you will see backup.tar.gz.gpg in your home directory.

After uploading the backup to a safe place, they can delete the .tar.gz file that served as the basis for encryption.

Backup themes and icons

LXDE

As they should also know, part of the configurations and visual aspects of a desktop environment are the themes and icons, so we can back them up in the following way.

They should know that there are two possible routes where they are stored, where the most common is the one inside the "/ usr" folder at the root of the file system. Another location that it usually has is inside the personal folder in "/ home".

It is enough that they look for the folders and which contain the folders that they will back up.

/ usr / share / icons   y  / usr / share / themes  or in ~ / .icons and ~ / .themes.

Ya knowing the path where your icons and themes are stored, just execute the following command replacing "path" with the path where you have stored what you are going to backup:

tar -cvpf bakcup-iconos.tar.gz ruta
tar -cvpf bakcup-themes.tar.gz ruta

Now that all the custom themes and icons are in the TarGZ files, lThe backup is complete and compressed files can be saved in the cloud, a USB the other hard disk or whatever they have in mind to do with them.

Restore backup

Finally, to be able to restore your configuration on a new system or if you decided to share it with another person or on another computer, They must download or connect the device where they saved the compressed files.

To unzip and decrypt the LXDE bakup you must type the following command:

gpg copia-de-seguridad-.tar.gz.gpg

Where the password assigned to you will be requested. Once decrypted, we will now proceed to restore the file to your home directory with the tar command.

tar --extract -- copia-de-seguridad-.tar.gz -C ~ / --strip-components = 2

After restoring your configuration files, extract the icon files and theme file with tar.

In the case of icons, the same applies

tar --extract --file bakcup-iconos.tar.gz -C ~ / --strip-components = 2
tar --extract --file bakcup-themes.tar.gz -C ~ / --strip-components = 2

In case it asks for permissions, they just add sudo in the following way:

sudo tar --extract --file custom-icons.tar.gz -C /usr/share/ --strip-components=1 --overwrite
sudo tar --extract --file custom-themes.tar.gz -C /usr/share/ --strip-components=1 --overwrite

When the icons are in place, your LXDE desktop you will need to restart your system so that the changes of the configuration folders are loaded at startup and your system user.


2 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Bill emia said

    Nice information about LXDE configuration

  2.   Eddy Sandoval said

    greetings and blessings friends, please make an article the same for openbox and jwm, thank you very much for your contributions and thanks in advance