Learning about Linux and Linux backup is one of the most important links. After reading Linux backup books for a long time, I would like to share with you that you will surely have a lot of gains after reading this article, I hope this article will teach you more things.
The Linux backup tools are as follows:
◆ Command column tools, such as ''d'', ''dump '', ''cpio'', and ''tar''
◆ Text tools, such as ''amanda ''and ''taper''
◆ Graphical interface tools, such as ''kdat''
◆ Commercial backup tools, such as ''bru'' and ''fectbackup +''
1,CpioUsed for full backup, combined with the Find command, with another hard disk that is completely used for backup
The format is as follows:
# Find/-print | cpio-covB>/dev/st0 # Back up data to the tape drive
# Cpio-iduv
2,DdUsed for full backup. Features: backs up an identical hard disk.
The format is as follows:
# Ddif =/dev/hdaof =/dev/hdb
3,TarFor full backup and partial backup
The format is as follows:
# Tar-zcvpf/archive/full-backup-'date'{d-}b-policy''.tar.gz -- directory/-- exclude = mnt -- exclude = proc -- exclude = var/spool/squid. # complete backup
Resolution:
1.-zcvpf:
◆ Z compression; backup data is compressed by ''gzip)
◆ C. An archive file is created)
◆ Vverbose; displays backed up files)
◆ P can be saved. The protected information will be "Memorized" and can be replied)
◆ F file) The option is followed by the archive file or device to be written.) note how the file name containing the information is obtained, enclose the ''date' command with two backquotes. The general naming convention is to add ''.tar' to the uncompressed archives, and add ''tar.gz 'to the compressed archives''
2. The -- directory option tells tar to jump to the following file path before starting the backup. In this example, it is the '/' directory ).
3. The -- exclude option instructs tar not to back up the specified file or directory.
4. At the end, the '.' symbol tells tar to back up everything in the current directory.
# Tar-zxvfhost.tgz # Restoration
# Tar-zpcvfmysql. 'date + % Y-% m-% D'. tgz/var/lib/mysql # partial backup
# Tar-N '2014/1/17'-zpcvfhome. tgz/home # Back Up Files after 2007/4
- Introduction to the default Linux directory
- Linux cd command for Linux tutorial
- GNOME 2.28 in Linux Desktop is officially released
- Linux serial port tool C-kermit
- Yuan Meng: lightweight Linux