In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to back up and restore Ubuntu Linux". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to back up and restore Ubuntu Linux.
Install TimeShift on Ubuntu / Debian Linux
TimeShift is not officially hosted in Ubuntu and Debian repositories. With this in mind, we will run the following command to add PPA:
# add-apt-repository-y ppa:teejee2008/ppa
Add timeshift repository
Next, update the system package with the following command:
# apt update
After successfully updating the system, install Timeshift using the following apt command:
# apt install timeshift
Apt install timeshift
Prepare to backup storage Devic
Best practices require us to keep a snapshot of the system on a separate storage volume outside the system's hard drive. For this guide, we will use 16GB flash as the second drive and save the snapshot on that drive.
# lsblk | grep sdb
Lsblk sdb ubuntu
In order to use flash as the backup location for snapshots, we need to create a partition table on the device. Run the following command:
# parted / dev/sdb mklabel gpt# parted / dev/sdb mkpart primary 0% 100% # mkfs.ext4 / dev/sdb1
Create partition table on drive ubuntu
After creating a partition table on USB flash memory, we can start creating a snapshot of the file system!
Create a snapshot using Timeshift
To start Timeshift, search for "Timeshift" using the application menu.
Access timeshift
Click the Timeshift icon and you will be prompted for your administrator password. Provide the password and click verify.
Authentication required
Next, choose the type of snapshot you like.
Select rsync option
Click "Next". Select the target drive for the snapshot. Here, my location is the external USB drive labeled / dev/sdb.
Select snapshot location
Next, define the snapshot level. A level is the interval at which a snapshot is created. You can choose a monthly, weekly, daily, or hourly snapshot level.
Select snapshot levels
Click "Finish".
In the next window, click the Create button to start creating the snapshot. After that, the system begins to create a snapshot.
Create snapshot
Finally, your snapshot will be displayed as follows:
Snapshot created
Restore Ubuntu / Debian from a snapshot
After creating a snapshot of the system, let's now look at how to restore the system from the same snapshot. In the same Timeshift, click the snapshot, and then click the "Restore" button, as shown.
Restore snapshot
Next, you will be prompted to select the target device. Leave the default selection and click "Next".
Select target device
Timeshift will be trial run before the recovery process begins.
Comparing files dry run
In the next window, click the "Next" button to confirm the action displayed.
Confirm actions
As shown in the figure, you will see warnings and disclaimers. Click "Next" to initialize the recovery process.
After that, the restore process begins, and finally, the system reboots to the earlier version of the snapshot definition.
Restoring snapshot
Summary
As you can see, it is very easy to restore the system from a snapshot using TimeShift. It is very convenient when backing up system files and allows you to recover in the event of a system failure. So don't be afraid to modify or mess up the system. TimeShift enables you to return to a point in time when everything is running smoothly.
At this point, I believe you have a deeper understanding of "how to back up and restore Ubuntu Linux". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.