CN108062261B - Backup restoration method for Linux desktop operating system - Google Patents
Backup restoration method for Linux desktop operating system Download PDFInfo
- Publication number
- CN108062261B CN108062261B CN201610983193.6A CN201610983193A CN108062261B CN 108062261 B CN108062261 B CN 108062261B CN 201610983193 A CN201610983193 A CN 201610983193A CN 108062261 B CN108062261 B CN 108062261B
- Authority
- CN
- China
- Prior art keywords
- backup
- window
- operating system
- restoration
- restored
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1469—Backup restoration techniques
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention relates to a backup restoration method of a Linux desktop operating system, which comprises the following steps: s1: modifying an entry interface of an installation program of an operating system to provide an entry of a backup and restore interface, so that when an optical disc is inserted, a window button for backup and restore is contained in a pop-up interface; s2: writing a backup button and a restore button; s3: compiling a backup window; s4: compiling a window which is being backed up, and compiling a backup function by using Fsarcover; s5: writing a restored window based on step S2; s6: and writing a window being restored, and writing a restored function by using Fsarcover. The method provided by the invention can start a LiveCD system environment by using the optical disc when backing up the system, and then backups the system on the partition which is not mounted. The backup and restoration function of the linux desktop operating system is realized.
Description
Technical Field
The invention relates to the technical field of computers and information, in particular to a backup restoration method for a Linux desktop operating system.
Background
Fsarchiver is a system archive tool that can compress the contents of an entire file system into one file and then restore the contents of the file system on partitions of different sizes, even systems of different files. Unlike the tar archive tool, fsarchifter also creates a file system when restoring data to a partition.
In order to protect the data at the time of archiving, fsacrcoverer checks the contents of all data. If a file is corrupted during archiving, fsearchiever discards the file and archives other files.
However, Fsarchiver can only back up the contents of the partition that is not mounted or is only read-mounted during the backup, and it cannot back up the contents of the partition that is mounted by reading and writing, so Fsarchiver cannot be used to back up a system that is being used.
Disclosure of Invention
In order to solve the defects of the prior art, the invention provides a backup restoration method of a Linux desktop operating system, which comprises the following steps:
s1: modifying an entrance interface of an installation program of the Linux desktop operating system to provide an entrance of a backup restoration interface, so that when an optical disc is inserted, a pop-up interface comprises a window button for backup restoration;
s2: writing a backup button and a restore button;
s3: compiling a backup window;
s4: compiling a window which is being backed up, and compiling a backup function by using Fsarcover;
s5: writing a restored window based on step S2;
s6: and writing a window being restored, and writing a restored function by using Fsarcover.
In step S1, the partition of the backup file is mounted while the optical disc is inserted.
In step S3, the file name generated by the backup is displayed in the window of the created backup.
In step S4, after the backup is completed, all the mounted partitions are unloaded, and then the completion of the backup is prompted through a window.
In step S5, the backup node is displayed in the written restore window.
In step S5, the backup file of the designated node is selected and restored.
Wherein the step S6 further includes: and regenerating grub for guiding the restored Linux desktop operating system, unloading all mounted partitions after restoration is finished and prompting that restoration is finished.
In the invention, the term "Fsarchiver" refers to a safe and flexible file system backup and deployment tool.
The backup restoration method of the Linux desktop operating system provided by the invention can start a LiveCD system environment by using an optical disk when backing up the system, and then backups the system on the partition which is not mounted. The backup and restoration function of the linux desktop operating system is realized.
Drawings
FIG. 1: the invention relates to a method for backing up and restoring a Linux desktop operating system.
Detailed Description
In order to further understand the technical scheme and the beneficial effects of the present invention, the following detailed description of the technical scheme and the beneficial effects thereof is provided with the accompanying drawings.
Fig. 1 is an operation flow chart of a method for backup restoration of a Linux desktop operating system according to the present invention, and as shown in fig. 1, the present invention provides a method for backup restoration of a Linux desktop operating system, including the following steps:
s1: modifying an entrance interface of an installation program of the Linux desktop operating system to provide an entrance of a backup restoration interface, so that when an optical disc is inserted, a pop-up interface comprises a window button for backup restoration;
s2: writing a backup button and a restore button;
s3: compiling a backup window;
s4: compiling a window which is being backed up, and compiling a backup function by using Fsarcover;
s5: writing a restored window based on step S2;
s6: and writing a window being restored, and writing a restored function by using Fsarcover.
Preferably, in step S1, the partition of the backup file is mounted while the optical disc is inserted.
Preferably, in step S3, the file name generated by the backup is displayed in the window of the created backup.
Preferably, in step S4, after the backup is completed, all the mounted partitions are unloaded, and then the completion of the backup is prompted through a window.
Preferably, in step S5, the written restore window displays the backed-up node.
Preferably, in step S5, the backup file of the designated node is selected to be restored.
Preferably, the step S6 further includes: and regenerating grub for guiding the restored Linux desktop operating system, unloading all mounted partitions after restoration is finished and prompting that restoration is finished.
In the present invention, the term "grub" refers to a multiple os boot manager.
When the method for backup restoration of the Linux desktop operating system provided by the invention is specifically implemented, the inventor provides the following two specific embodiments:
example 1: and realizing a backup and restoration function on the operating system of the winning kylin desktop.
S1: and modifying an inlet interface of an installation program of the winning bid kylin operating system, wherein the interface comprises a window for backup and restoration, and the window can be popped up when the optical disc is inserted. Then the sda4 partition in the system is mounted, which partition was created at installation time. A backup directory is created on the sda4 partition to save the backup-generated files.
S2: two window buttons are written for backup and restore. If the user selects the backup button, the system will be backed up, and if the user selects the restore button, the backed-up file will be restored.
S3: and writing a backup window, and displaying a file name generated by backup, such as Neokylin-backup-20160910.fsa, in the window.
S4: the window being backed up is written and then the function of the backup is written based on fsearchiver. And finally unloading all the mounted partitions, and prompting the completion of the backup through a window.
S5: based on the window written for restoration in step S2, the backup node is displayed in the window, and the user can select the backup node for restoration.
S6: the window being restored is written, and the restored function is written based on Fsarcover. And then, regenerating grub to guide the generated system to be restored. And unloading all the mounted partitions after the restoration is finished, and finally prompting the completion of the restoration.
Example 2: and realizing a backup and restoration function on the Fedora desktop operating system.
S1: and modifying an entry interface of an installation program of the Fedora operating system, wherein the interface comprises a window for backup and restoration, and the window can be popped up when the optical disk is inserted. Then the sda3 partition in the system is mounted, which partition was created at installation time. A backup directory is created on the sda3 partition to save the backup-generated files.
S2: two window buttons are written for backup and restore. If the user selects the backup button, the system will be backed up, and if the user selects the restore button, the backed-up file will be restored.
S3: and writing a backup window, and displaying a file name generated by backup, such as Fedora-backup-20160910.fsa, in the window.
S4: the window being backed up is written and then the function of the backup is written based on fsearchiver. And finally unloading all the mounted partitions, and prompting the completion of the backup through a window.
S5: based on the window written for restoration in step S2, the backup node is displayed in the window, and the user can select the backup node for restoration.
S6: the window being restored is written, and the restored function is written based on Fsarcover. And then, regenerating grub to guide the generated system to be restored. And unloading all the mounted partitions after the restoration is finished, and finally prompting the completion of the restoration.
The backup restoration method of the Linux desktop operating system provided by the invention can start a LiveCD system environment by using an optical disk when backing up the system, and then backups the system on the partition which is not mounted. The backup and restoration function of the linux desktop operating system is realized.
Although the present invention has been described with reference to the preferred embodiments, it should be understood that the scope of the present invention is not limited thereto, and those skilled in the art will appreciate that various changes and modifications can be made without departing from the spirit and scope of the present invention.
Claims (6)
1. A method for backup restoration of a Linux desktop operating system is characterized by comprising the following steps:
s1: modifying an entry interface of an installation program of the Linux desktop operating system to provide an entry of a backup restoration interface, so that when an optical disc is inserted, a window button for backup restoration is included in a popped interface, and a partition of a backup file is mounted while the optical disc is inserted;
s2: writing a backup button and a restore button;
s3: compiling a backup window;
s4: compiling a window which is being backed up, and compiling a backup function by using Fsarcover;
s5: writing a restored window based on step S2;
s6: and writing a window being restored, and writing a restored function by using Fsarcover.
2. The method for backup restoration of the Linux desktop operating system of claim 1, wherein in the step S3, a file name generated by the backup is displayed in a window of the written backup.
3. The method for backup recovery of the Linux desktop operating system of claim 1, wherein in the step S4, all mounted partitions are unloaded after the backup is completed, and then the backup is prompted to be completed through a window.
4. The method for backup restoration of the Linux desktop operating system of claim 1, wherein in the step S5, the backed up node is displayed in the written restored window.
5. The method for backup restoration of the Linux desktop operating system of claim 4, wherein in the step S5, the backup file of the designated node is selected to be restored.
6. The method for backup restoration of a Linux desktop operating system of claim 1, wherein the step S6 further comprises: and regenerating grub for guiding the restored Linux desktop operating system, unloading all mounted partitions after restoration is finished and prompting that restoration is finished.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610983193.6A CN108062261B (en) | 2016-11-09 | 2016-11-09 | Backup restoration method for Linux desktop operating system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610983193.6A CN108062261B (en) | 2016-11-09 | 2016-11-09 | Backup restoration method for Linux desktop operating system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108062261A CN108062261A (en) | 2018-05-22 |
CN108062261B true CN108062261B (en) | 2021-11-19 |
Family
ID=62137503
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610983193.6A Active CN108062261B (en) | 2016-11-09 | 2016-11-09 | Backup restoration method for Linux desktop operating system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108062261B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1808393A (en) * | 2006-01-26 | 2006-07-26 | 章平顺 | Automatic backup and recovery device for computer system and implementation method method thereof |
CN101625654A (en) * | 2008-07-10 | 2010-01-13 | 福建升腾资讯有限公司 | Method and system for restoring encrypted backup of embedded systems |
CN101673230A (en) * | 2009-10-16 | 2010-03-17 | 国电南京自动化股份有限公司 | Method for automatically backing up and recovering configuration data of embedded system by using a U-disk |
CN104182301A (en) * | 2014-08-26 | 2014-12-03 | 山东超越数控电子有限公司 | Backup method and restore method for Kylin operating system |
US9152508B1 (en) * | 2010-03-02 | 2015-10-06 | Storagecraft Technology Corporation | Restoration of a backup of a first volume to a second volume on physical media |
CN105138431A (en) * | 2015-08-27 | 2015-12-09 | 厦门市美亚柏科信息股份有限公司 | Linux system back-up and restoring method |
WO2016007868A1 (en) * | 2014-07-11 | 2016-01-14 | Pcms Holdings, Inc. | Systems and methods for virtualization based secure device |
CN105740092A (en) * | 2014-12-10 | 2016-07-06 | 鸿富锦精密工业(深圳)有限公司 | System backup and recovery method |
CN105955852A (en) * | 2016-07-21 | 2016-09-21 | 浪潮(北京)电子信息产业有限公司 | Server backing-up method and device and server restoring method and device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1297907C (en) * | 2003-03-31 | 2007-01-31 | 联想(北京)有限公司 | Realization method of computer hard disk data restoring and back-up |
CN102567136B (en) * | 2010-12-15 | 2016-08-24 | 研祥智能科技股份有限公司 | The backup of a kind of computer system, method of reducing, device and computer system |
WO2013102506A2 (en) * | 2012-01-02 | 2013-07-11 | International Business Machines Corporation | Method and system for backup and recovery |
CN104636217B (en) * | 2013-11-14 | 2018-11-20 | 厦门雅迅网络股份有限公司 | A kind of root file system automated back-up and abnormal restoring method and partitioned organization |
CN105159799A (en) * | 2015-09-06 | 2015-12-16 | 浪潮(北京)电子信息产业有限公司 | Method and device for backing up server |
-
2016
- 2016-11-09 CN CN201610983193.6A patent/CN108062261B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1808393A (en) * | 2006-01-26 | 2006-07-26 | 章平顺 | Automatic backup and recovery device for computer system and implementation method method thereof |
CN101625654A (en) * | 2008-07-10 | 2010-01-13 | 福建升腾资讯有限公司 | Method and system for restoring encrypted backup of embedded systems |
CN101673230A (en) * | 2009-10-16 | 2010-03-17 | 国电南京自动化股份有限公司 | Method for automatically backing up and recovering configuration data of embedded system by using a U-disk |
US9152508B1 (en) * | 2010-03-02 | 2015-10-06 | Storagecraft Technology Corporation | Restoration of a backup of a first volume to a second volume on physical media |
WO2016007868A1 (en) * | 2014-07-11 | 2016-01-14 | Pcms Holdings, Inc. | Systems and methods for virtualization based secure device |
CN104182301A (en) * | 2014-08-26 | 2014-12-03 | 山东超越数控电子有限公司 | Backup method and restore method for Kylin operating system |
CN105740092A (en) * | 2014-12-10 | 2016-07-06 | 鸿富锦精密工业(深圳)有限公司 | System backup and recovery method |
CN105138431A (en) * | 2015-08-27 | 2015-12-09 | 厦门市美亚柏科信息股份有限公司 | Linux system back-up and restoring method |
CN105955852A (en) * | 2016-07-21 | 2016-09-21 | 浪潮(北京)电子信息产业有限公司 | Server backing-up method and device and server restoring method and device |
Also Published As
Publication number | Publication date |
---|---|
CN108062261A (en) | 2018-05-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8745523B2 (en) | Deletion in electronic backups | |
US8725965B2 (en) | System setup for electronic backup | |
US8965929B2 (en) | Manipulating electronic backups | |
US7809688B2 (en) | Managing backup of content | |
US8117168B1 (en) | Methods and systems for creating and managing backups using virtual disks | |
US7747575B2 (en) | Application-specific intelligent backup and restore system | |
US8819487B2 (en) | System reset | |
US8578203B2 (en) | Providing a backup service from a remote backup data center to a computer through a network | |
US20060200639A1 (en) | System and method for computer backup and recovery using incremental file-based updates applied to an image of a storage device | |
US20120311279A1 (en) | Data recovery and backup system and process | |
CN108241550B (en) | Backup and restoration method for operating system | |
US10127119B1 (en) | Systems and methods for modifying track logs during restore processes | |
US9405756B1 (en) | Cloud-based point-in-time restore of computer data | |
CN105138431A (en) | Linux system back-up and restoring method | |
US9619340B1 (en) | Disaster recovery on dissimilar hardware | |
US20100037092A1 (en) | System and method for backup, reboot, and recovery | |
US20120260039A1 (en) | Method and a removable device for backing up and restoring a host device | |
US9424265B1 (en) | Method and system for backing up and restoring a multi-user relational database management system | |
US11150831B2 (en) | Virtual machine synchronization and recovery | |
CN108062261B (en) | Backup restoration method for Linux desktop operating system | |
US7865472B1 (en) | Methods and systems for restoring file systems | |
TWI536161B (en) | Backup method, recovery method and computer, computer program product and computer readable recording medium thereof | |
CN105912426A (en) | K-UX operating system reduction method and system | |
CN117492920A (en) | Control method, device, equipment and medium of cloud platform | |
Kinnunen | TEST ENTITY FOR MICROSOFT RESILIENT FILESYSTEM |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |