Have a flash drive and need to backup your Linux configuration information and settings? If that’s the case, we will help! Comply with alongside as we go over two straightforward methods to back up Linux settings and configuration information to flash drive!

Observe: for greatest outcomes, please use a USB flash drive of not less than 4 GB in dimension. Configuration folders typically carry a lot of knowledge, and a small flash drive possible will be unable to deal with all the information.

Technique 1 – Back up with Tar

Backing up your Linux settings with the Tar command is a good thought when you’re in a hurry, because it’s a fast course of. To create a backup, begin by opening up a terminal window. You are able to do this by urgent Ctrl + Alt + T or Ctrl + Shift + T on the keyboard.

With the terminal window open, use the Tar command to compress the ~/.config/ folder, because it’s the listing the place most purposes retailer their settings.

9k=

tar czvf linux-settings.tar.gz ~/.config/

Working the above command will output a TarGZ archive file with most of your Linux configurations.

From right here, plug in your flash drive into the USB port in your Linux PC. Then, open up the file supervisor and place linux-settings.targ.gz on it.

Back up different settings folders with Tar

Backing up the ~/.config/ folder to a TarGZ archive is a great way to guarantee most of your Linux settings are backed up. That mentioned, not each program shops its setting information there. Some simply use the ~/ listing as an alternative. So, if the primary backup didn’t get the whole lot, do this one as an alternative.

tar czvf linux-settings.tar.gz ~/

Encrypt Tar backup

Linux settings typically comprise delicate data, together with passwords, bookmarks, and many others. If you happen to’re backing up your Linux settings through Tar to a flash drive, you might have considered trying to encrypt the backup as effectively.

The simplest manner to create a backup on Linux is by utilizing the GPG instrument. To start out the encryption course of, use the next gpg command under.

gpg -c linux-settings.tar.gz

With the archive encrypted, delete the unencrypted file.

rm linux-settings.tar.gz

Restore Tar backup

To revive a Tar backup, comply with the step-by-step directions under.

Step 1: Plug in your flash drive into the USB port, and drag the “linux-settings.tar.gz” archive to your own home listing (/house/username/).

Step 2: Use GPG to decrypt the TarGZ, when you want to.

gpg linux-settings.tar.gz

Step 3: Restore the backup.

tar xzvf linux-settings.tar.gz -C ~/ --strip-components=2

Technique 2 – Back up with Deja Dup

Deja Dup is a superb instrument for these trying to create a backup on a Flash drive however don’t need to take care of the terminal. It’s a straightforward to use app that saves your settings in a couple of clicks.

Utilizing the Deja Dup backup instrument requires that you simply set up this system. So, earlier than we proceed, click on right here to find out how to set up the app. Then, as soon as it’s up and operating, plug in your flash drive.

As soon as the USB flash drive is plugged in, click on on “Storage location” within the Deja Dup app. Then, find the drop-down menu and click on on the choice labeled “local folder.”

Upon clicking on the “local folder” choice, a file-browser window will seem. Use it to browse to the principle folder of your flash drive. Then, click on OK to add it to Deja Dup because the storage location.

Add folders to save

With the storage location set to your flash drive, it’s time to set the folder to backup. Within the app, find “Folders to save” and click on on it with the mouse. As soon as there, click on the “+” signal to convey up the file browser.

Within the file browser, guarantee that you’ve got hidden folders enabled and add ~/.config/. Alternatively, when you can’t allow hidden information, or need to back up extra than simply the ~/.config/, be at liberty to add ~/ as an alternative.

Begin the backup

Backing up to a flash drive with Deja Dup could be very straightforward. To do it, click on on “Overview.” Then, discover the “Back up Now” button and click on on it to begin the backup. Ensure to test the “encrypt” field when you’d like to hold your backup safe.

Restore the Deja Dup backup

To revive your backup from a flash drive, plug within the machine to a USB port. Then, open up Deja Dup. With the Deja Dup app open in your Linux PC, click on on “Storage” location.

Utilizing the drop-down menu, configure Deja Dup to use your USB flash drive as a storage location.

After configuring the Deja Dup software to acknowledge your USB flash drive, make your manner to the “Overview” space. Then, click on on the “Restore” button to restore your configuration information to their unique areas.



Source link

Share.
Leave A Reply

Exit mobile version