Linux Command File Backup archive recovery

Source: Internet
Author: User

Cp

[ function Description ]

Backup of files

English xxxx #cp command to copy the source files to another safe place, the copied files and source files are two independent files, the operation of the knowledge of one file does not affect the other file, but with the symbolic link file in the hard link is different

[ syntax Format ]

cp[ parameter [ source file or directory] [ destination directory ] or cp[ option [ source Document ] [ target document ]

[ option parameter ]

Parameters

Description

-A

This parameter is typically used when replicating a directory. Preserve links, file attributes, and recursively copy directories, which function equal to the combination of the -d,-p and - r Parameters

-B

When copying files, if the target file exists, in the delete, overwrite the target file should be a backup, and at the end of the existing file with a backup string, default ~

-D

Keep links when copying

-

Delete a target file that already exists without alerting

-I.

In contrast to the F parameter, a prompt is given before overwriting the target file and the user is asked to confirm that the input y is overwritten and is a safe interactive mode

-P

With this parameter the CP Command, in addition to copying the contents of the source file, also maintains access to the source file, the owner, the timestamp is not changed,

-R

If the source file is given a directory file, then the directory is recursively copied from the command to all subdirectories and files

-L

Create a hard link to a file, not a copy

-L

Trace Symbolic Links

-P

Do Not track symbolic links

Dump

[ function Description ]

Backup of file or file system

# file backup includes backup of specific files and backup of entire file system,dump command tends to consider backing up whole file system file backup strategy including full backup, incremental backup and update backup.

[ syntax Format ]

dump[ parameters [ directories and file systems to be backed up ] or DUMP[-WW]

[ option parameter ]

parameters

Description

-0123456789

the level of backup, 0 means all backups, others represent incremental backups, for the last lower level, Back up the file system only modified or new file default 9

 

-D

Set the density unit of the tape to BPI

-j

 

Compress write, specify compression level such as 2

eSTORE

[ function Description ]

Recovering a file or file system

#Linux provides a dedicated dump Recovery Tool

[ syntax Format ]

restore[ main parameter [optional parameter ] [ filename or file system ]

[ option parameter ]

Parameters

Description

-I.

The file in the dump is processed in interactive mode, and a similar shell interface appears when the dump file is read, allowing the user to execute the appropriate command to control whether or not to extract the file. and execute the command

-F

Reads the backup data from the specified file and restores it, where the backup file can be a special device file, if the file name is in file:host or [email Protected] , which represents the data from the remote host reading the backup file

-b< block size >

The size of each dump record chunk, in bytes, if the size of the media block is not specified,restore automatically detects the size of the media chunk

-R

specifying where to recover from for special tapes is useful for interrupted restore commands

Just do a summary if it is wrong, please Daniel criticism advice.

Sincerely salute

Copyright notice

The contents of this summary are all excerpt from "Linux Command complete technical treasure" Zhang Dong
Cat Tac Mor

Linux Command File Backup archive recovery

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.