Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Linux Getting Started tutorial: How to backup Linux systems     - Oracle 11g How dataguard master repository to Oracle single instance data recovery (Database)

- top command causes the system load increases (Linux)

- Linux, Oracle listen address modification (Database)

- OpenSIPS offline messaging feature set (Server)

- 7 extremely dangerous Linux commands (Linux)

- Oracle 11g dataguard main library backup and recovery to the test environment in one database error (Database)

- Android project and coding specifications (Programming)

- Hackers is how the invasion and control of Things devices? (Linux)

- Android source code compiled fatal error solutions (Programming)

- Oracle 12c R2 new feature dbca command to create a standby database (Database)

- Vim copy and paste register (Linux)

- Macro Analysis Performance: PHP Performance Analysis and Experiment (Programming)

- Linux Proc File System Experiment (Linux)

- AngularJS - Custom instructions (Programming)

- To install Emacs under CentOS 6.5 (Linux)

- Ubuntu 14.10 install KDE Plasma 5.2 (Linux)

- Nginx server load balancing dual-system availability (Server)

- Python function arguments * args and ** kwargs usage (Programming)

- Ubuntu 14.04 / Linux Mint 17 How to install the MintMenu 5.5.2 menu (Linux)

- Linux system performance analysis and top command ps.pstree Comments (Linux)

 
         
  Linux Getting Started tutorial: How to backup Linux systems
     
  Add Date : 2018-11-21      
         
         
         
  In some previous articles, I have repeatedly mentioned often will engage in a Linux system crashes, the backup system is a thing can not be ignored. Because of their superiority Linux systems, backup and restore the system is relatively easy. Mainly in the following areas:

All Linux systems in the form of a file exist, so the backup is a direct copy files; hard disk partition also as a file, so you can directly clone hard drive data.
Linux system comes with many useful tools, such as tar, dd, rsync, etc., backup and restore system does not need to buy or download third-party software.
Linux system in run-time files on its hard disk can be overwritten, so no additional time to restore the system's boot disk. (Of course, the system is completely unable to start this case to hang or require additional boot disk.)
Backup Strategies There are many Linux systems, such as using the dd command to directly clone the hard disk partition:

sudo dd if = / dev / sda1 of = / dev / sdb1
Alternatively, use tar files on the hard disk packing:

cd /
sudo tar cvpzf backup.tgz --exclude = / proc --exclude = / mnt --exclude = / sys --exclude = / backup.tgz /
Restore the system command is:

sudo dd if = / dev / sdb1 of = / dev / sda1
or
tar xvpfz backup.tgz -C /
But I chose the rsync command. rsync is a very good tool for file synchronization, can be seen from its name, it supports remote synchronization. Of course, my desktop backup system, only need to use its local synchronization on the line. Chose rsync, it is because it has the following advantages:

In the backup and restore process, you can save the file the original time, permissions, soft and hard links and other information;
When the first backup, you need to copy all the files, but when you back up or restore the system again, you only need to copy the modified file.
On how to use rsync, the main reference document is the man rsync, in addition, rsync can also be run as a daemon used to create a backup file server, you can refer to the documentation man rsyncd.conf.

Desktop Backup combat

For my desktop, I chose backup strategy is to use the rsync command to all files on the hard drive (of course, to exclude the contents of / proc and / sys directory) is copied to the U disk. First, use the command df -lh check my computer's system account for how much space

Partition root directory where occupied 14G, and partition / boot directory where it occupies more than 100 M. In fact, Linux system would have been not so bloated, but since I installed a lot of software packages, such as a set of texlive ah what, it takes up so much space. But this is not the thing, anyway, now U disk is cheap, so U disk 32G find the USB 3.0 to back up my system is certainly very pleasant.

New U disk into your computer will be automatically recognized using the mount command with no arguments can view the device file and mount path U disk, using the fdisk command to know the size of the U disk and partition.

U disk is divided into a whole area I do not have opinions, but I do not like it vfat file system, if it was a giant of more than 4G file how to do? so, umount it first, and then use it to re-establish a mkfs.ext3 file system

U disk and then mount up, mount the path / media / youxia / usb.

You can then start the backup, and the backup is my command:

sudo rsync -Pa / / media / youxia / usb / backup_20141216 --exclude = / media / * --exclude = / sys / * --exclude = / proc / * --exclude = / mnt / * --exclude = / tmp / *

Effect after the backup is complete, you can see the entire backup process took 59 more minutes, U-occupied 15G

If the day before the collapse of the system, then only need to use sudo rsync -Pa / media / youxia / usb / backup_20141216 / to restore the system.
     
         
         
         
  More:      
 
- Let OS X support NTFS write file (Linux)
- Python interview must look at 15 questions (Programming)
- Git remote repository Explanation (Linux)
- CentOS 7 update source - the use of domestic sources 163 yum (Linux)
- How to import JNI resulting .so libraries in Android Studio (Programming)
- Ubuntu modify DNS restart loss problem (Linux)
- Linux command ls (Linux)
- C ++ complex class of operator overloading (Programming)
- C # Future: Method Contract (Programming)
- Linux PXE unattended installation PXE-E32: TFTP OPen timeout the solution (Linux)
- C ++ containers (Programming)
- blecat: Bluetooth Gadgets (Linux)
- Deploy the project to the server from GitHub (Server)
- Compression decompression command under Linux (Linux)
- Ubuntu system safe and caution sudo su command (Linux)
- Under Ubuntu 15.04 installation JDK8 (Linux)
- Oracle () trunc function usage (Database)
- Linux command Detailed chpasswd bulk edit user password (Linux)
- To teach you how to safely send mail (Linux)
- SecureCRT session buffer size settings (Linux)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.