10 Types of Linux disk-snapshot-mode recovery system

Source: Internet
Author: User
Tags arch linux linux mint

Guide As we all know, the Windows system has a disk snapshot function, in windows2003 system recovery begins to rely on a service called the Hard disk Snapshot service (Volume Snapshot service), He was able to automatically create system snapshots-including the files being used-and then convert those files to a recoverable node file, after which the file system NTFS format partition has a snapshot of the system recovery snapshot that can be saved, so that the system can be completed after the disk has been mistakenly operated. Does Linux have a disk snapshot? How did he recover from his system mis-operation? Today's mini-taping you 10 ways to play the recovery of a Linux disk snapshot.
the idea of restoring Linux system

In order to find the system recovery function of the Linux lookup system, the small series searched for almost all of Linux's hairstyle versions, and did not find the customary service settings for Linux system recovery. However, you can implement some features similar to disk snapshots by installing third-party programs. Create a snapshot on a disk with a third-party service to recover when there is a problem with the system. Ok this is one of the principles of Linux recovery. Note that the recovery method we use here is not a backup but a system snapshot. Below we have found 10 system snapshot software everyone test it.

First, Timeshift

Timeshift provides a very concise graphical user interface, you can also use it directly in the terminal Input command. By default. Timeshift does not include the user's personal files, but you can add special directories to the snapshot by customizing them. Timeshift also provides a version specifically for Btrfs file system that can support native Btrfs system snapshot functionality.

Software Installation

Users of Ubuntu and its affiliates can get Timeshift:sudo apt-add-repository ppa:teejee2008/ppasudo apt-get updatesudo apt-get Install from the developer's PPA Timeshift Other versions of the user can download the installation file and run it at the command line terminal:./timeshift-latest-amd.64.run
Create a snapshot Timeshift can help you get your snapshot done at any time, or you can set Timeshift to create snapshots automatically. You can schedule task schedules, take snapshots hourly, daily, weekly, or monthly, or set the time to clear these snapshots, and timeshift has a special option called a reboot snapshot to create a new snapshot file after each system restart.
Recovering a snapshot Timeshift system recovery from a snapshot is a straightforward task, just select the snapshot file and tell it where it should be stored. Timeshift also provides the option to restore snapshots to peripherals, which is handy when migrating your operating system to another new computer, using this "clone". Before recovering the snapshot, Timeshift will ask you if you need to save the existing app settings and let you choose which one to save. Please remember that Timeshift requires GRUB 2 to boot into snapshot recovery.

Second, Cronopete

Cronopete, a time machine that calls itself OS X, works slightly differently from Timeshift. Cronopete provides package files for Ubuntu,debian and Fedora, and Arch Linux users can find it in the Aur.

Create a snapshot

Unlike the other applications described in this article, Cronopete bundles the backup with the snapshot feature and asks you to save the snapshot on an external device. By default, it will check your file changes every hour, but of course you can change the time interval in the settings. If a file does not change, then Cronopete will only make a hard link to the file and not copy the file, which will help save disk space.

Recovering a snapshot

Cronopete's file recovery may be its coolest feature, as if it really helps you "travel through Time", that is, visually browse through all the files and folders of the saved version. To recover a file, just select it and click Restore, and the file will be copied from the external storage device to your existing system. Of course here you may have guessed that cronopete is not very meaningful for system-wide recovery, but it is a good choice if you want to save multiple versions of a single file.

third, back in time

The user interface in time looks very friendly and can attract new Linux novices. Its Settings dialog box provides a very granular manipulation of the control, the user interface looks like a file manager, where you can view all the snapshots, browse the files in the snapshot, and restore the selected files and folders.

Software Installation
Ubuntu user can install back in Time:sudo add-apt-repository ppa:bit-team/stablesudo apt-get updatesudo apt-get from PPA Backintime-qt4 some distributions provide back in time to their repositories, and if you don't have one, you can always find the source code on the Web and download the installation.

Create a snapshot

Back in time creates a snapshot of those directories that you choose, but only those directories that have write permissions are restored. You can encrypt the snapshot and store it on a network device, an external hard disk, or a local file system. Back in time updates only those files that have changed. In the Settings > Options tab, you can choose to disable the snapshot when no changes occur. The snapshot times for back in time are set on a daily, weekly, monthly, or a daily basis, or after each reboot. You can change the scheduled time yourself from the menu in the main toolbar.

Recovering a snapshot

Similar to Cronopete, back in time is more appropriate for folder-based or file-based rollback operations, but it is also possible if you want to roll back the entire file system. Recovering a snapshot is fairly straightforward, just select it and choose where to restore it, depending on whether you want to recover only a few folders or the entire system.

Iv. Systemback

Systemback's interface is small, but it's very powerful. Unfortunately, only Debian and Ubuntu and its affiliates can be used without the installation files for other Linux distributions.

Software Installation

Systemback can be installed via developer PPA: sudo add-apt-repository ppa:nemh/systembacksudo apt-get updatesudo apt-get Install Systemback

Create a snapshot

Systemback is not just another snapshot tool. It can turn your current system into a live CD or DVD so that it can be launched directly on another computer. It can repair or reload the Grub 2 launcher and repair the Fstab file, and of course, the primary use of systemback is for system snapshots.

Recovering a snapshot

Systemback limit the total number of snapshots to less than 10. The user has permission to delete the snapshot. The functionality of a snapshot can be chosen incrementally, which is to copy only the changed files and save the other files as hard links. However, in the Settings dialog box, you can disable this feature. When recovering files, you can choose to perform a system-wide recovery or simply copy the critical system files. Personal data such as photos and documents are not included in the snapshot, but you can transfer them to the live CD with custom actions in the options for creating > containing user data. Systemback allows users to customize the schedule of automatic snapshots, but you also turn this option off to manually set up recovery points. It is important to note that Systemback does not support NTFS file systems and therefore cannot take snapshots or restore operations on NTFS system partitions.

Wu, Snapper

The relationship between snapper and openSUSE is very close. You might be able to install Snapper on other Linux versions, but it doesn't have to work properly. The easiest way to install snapper in openSUSE is to install it on a btrfs partition so that snapper can be installed and configured automatically. You can use command-line tools to manipulate snapper, or through the YaST tool, and there is another alternative Snapper-gui.
Working style
Snapper can create several different types of snapshots, such as creating a snapshot before and after installing a new application. In this way you can compare snapshots and make system recovery more efficient. Snapper will automatically set up a time plan for the snapshot, and of course you can disable the feature. In snapper, snapshots are stored in the same partition as the system, so they grow up and remember to check their hard drive capacity at any time.
By default, snapper only creates a snapshot of the root partition. If you want to include additional partitions and Btrfs secondary disk volumes, you will need to create a configuration for each project, which must be done in the command-line terminal, and you will need to run the following command with root privileges:
Snapper-c ConfigName Create-config/path
Here-C represents the configuration "Configure", ConfigName is the name you take for this configuration,/path is the location of the partition or the secondary disk volume, for example:
SNAPPER-C Home Create-config/home You can view the current configuration with the following command:
Snapper list-configs All configuration files are saved in the/etc/snapper/configs directory. Here you can use a common text editor to modify them, for example, you can disable the ability to create snapshots per hour, enable automatic deletion of snapshots, and manually set the number of old snapshots that can be saved.
In YaST snapper mode, you can create and compare snapshots for system rollback operations, or restore a file or some other selected file to a previous version.

Vi. How to back up and restore installed applications

Once you know how to recover your entire operating system, you may want to know how to recover the installed applications. This is common in the case of a new version of the system upgrade or reload system. Fortunately, there are tools that offer the ability to migrate applications and are easy to use. The first thing I want to mention is Aptik, which is an application backup tool created by timeshift developers.

Aptik can only be used for Ubuntu-based distributions, you can install directly from the developer PPA:
sudo apt-add-repository ppa:teejee2008/ppasudo apt-get updatesudo apt-get Install Aptik
The Aptik is able to output the existing installed packages of the system as well as the libraries used and the downloaded package files in the form of a list. There are also options for exporting application settings, desktop themes, and icon sets. Aptik will classify these packages according to the type of installation, such as operating system pre-installed, user-independent installation, automatic installation dependencies and installation from. deb files, and so on. For. deb files you can drag them to the list and include them in the backup file. Backups can be saved in any location, and if you want to extract them to a newly installed release, you only need to install Aptik First, then select Backup in the main window and restore it.

Seven, Linux Mint

Linux Mint Users can choose the Mint Backup tool, the function is almost identical to Aptik. In addition to recovering installed applications, the tool can perform a quick backup of the selected folder and its permissions.
Users of Arch Linux can use Backpac to back up and restore applications. Backpac can set up a list file for a manual installation package, or you can back up the files individually as you choose. Using BACKPAC to restore the system state will reinstall the output package, remove files that are not included in the snapshot, and overwrite the system files with the previously exported version. In a dpkg-based system, you can use the following actions to output a list file for an installed app:
dpkg--get-selections >/home/yourusername/apps.txt
Then, copy the TXT file and library information from the/etc/apt/sources.d/directory and the/etc/apt/sources.list file to the new system. The backup application can be migrated to the new system using the following command line and providing the correct file path:
Dpkg--set-selections </path/to/apps.txt
sudo apt-get update
sudo apt-get dselect-upgrade
Some graphical package management tools, such as synaptic, provide a graphical user interface for outputting and importing a list of installed applications without the need to use the terminal command line.

Eight, advanced system rollback solution

If you don't think it's appropriate for the applications suggested above, then we have other solutions. What I call them "advanced" here does not mean that these scenarios are complex, but that they may not be the first choice for novice users.
If you want to use a minimalist and fast method for snapshot operations at the command-line terminal, try Rsnapshot. You can find it in most Linux distributions in the repository. All of the settings for Rsnapshot are in/etc/rsnapshot.conf this file. You can open this file, customize the snapshot schedule, set when to delete old snapshots, and which files and folders to include. After you've set it up, it's best to use the following two commands to test:
Rsnapshot Configtest
RSNAPSHOT-T Hourly
This will ensure that all of your settings are enabled properly. Remember to change the settings file by using one tab character in two feature options instead of spaces, so don't move the parameters with the spacebar. Rsnapshot does not have automatic recovery, so you can only copy files manually from the selected snapshot.

Nine, Obnam

Obnam is very similar to Rsnapshot and offers some interesting features. It can create a full-system backup, and then gradually generate snapshots that contain new or changed files. You can encrypt and decrypt the snapshot automatically. Obnam is also similar when it comes to system recovery, provides commands, and lets you choose where to store them.

You can set or modify a custom path to store the snapshot on the server or on a different remote device. The Official Handbook provided by Obnam is a great work that clearly explains all the functional operations.

10. LVM Snapshots

If some important data will be stored in the system, be sure to consider the backup and recovery methods in advance. If you are installing and setting up a Linux system, it is worth considering LVM (Logical Volume Manager) as the management tool for your hard disk.
To be precise, LVM is not an application, it provides built-in snapshot functionality in the Linux kernel, installs snapshots to any other disk or partition, merges several snapshots, and restores them to solve system problems. Or you can use the Linux kernel module DATTOBD to support incremental snapshots of a running system so that you do not have to unmount the partition or restart your computer. As you can see, there are a number of options to get the system recovery in Linux, but you will find that they are technically very similar, then there is no better way to replace the existing system recovery function? Perhaps in the future, as these applications evolve, there will be better ways to Or a more effective combination of these existing tools requires the user to continue exploring.

This article was reproduced from: http://www.linuxprobe.com/ubuntu-install-transmission-2-90/

Free to provide the latest Linux technology tutorials Books, for open-source technology enthusiasts to do more and better: http://www.linuxprobe.com/

10 Types of Linux disk-snapshot-mode recovery system

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.