Need to use tar, SCP command
Example:
TAR-ZCVPF 00000.tar.gz 00000scp-p [email protected]:/abc/a/00000.tar.gz/abc/a/
CD/ABC/ATAR-ZXVPF imlseconsult.tar.gz
A detailed description of the tar command
Main options:
C Create a new profile. Select this option if the user wants to back up a directory or some files. Equivalent to packaging.
X release the file from the archive file. Equivalent to unpacking.
T list the contents of the archive file and see which files have been backed up.
In particular, in the release of the parameters, c/x/t can only exist one! Cannot exist at the same time! Because it is not possible to compress and decompress simultaneously.
Accessibility Options:
-Z: Do you have the properties of gzip at the same time? i.e. do I need to compress or decompress with gzip? The general format is xx.tar.gz or XX. tgz
-j: Do you have bzip2 properties at the same time? i.e. do I need to compress or decompress with bzip2? The general format is xx.tar.bz2
-V: Files are displayed during compression! This common
-F: Use the file name, please note, after F to immediately answer the file name Oh! Don't add any more parameters!
-P: Use original file properties (attributes are not changed according to user)
--exclude file: In the process of compression, do not package file!
Reference Document: Http://www.cnblogs.com/li-hao/archive/2011/10/03/2198480.html
An explanation of the SCP command
1. Command format:
SCP [parameter] [original path] [Target path]
2. Command function:
SCP is the abbreviation for secure copy, and SCP is a secure remote file Copy command under the Linux system based on SSH login. The SCP command for Linux allows you to copy files and directories between Linux servers.
3. Command parameters:
-1 Mandatory SCP command using protocol SSH1
-2 Mandatory SCP command using protocol SSH2
-4 Force SCP command to use only IPV4 addressing
-6 Force SCP command to use only IPV6 addressing
-B Use Batch mode (transfer password or phrase is not asked during transfer)
-C allows compression. (Pass the-c flag to SSH to turn on the compression function)
-P retains the original file's modification time, access time, and access rights.
-Q does not display the transfer progress bar.
-R recursively replicates the entire directory.
-V verbose displays the output. SCP and SSH (1) will display debugging information for the entire process. This information is used to debug connections, authentication, and configuration issues.
-C cipher encrypts the data transfer with cipher, and this option is passed directly to SSH.
-F ssh_config Specifies an alternative SSH configuration file that is passed directly to SSH.
-I identity_file the key file used to read the transfer from the specified file, and this parameter is passed directly to SSH.
The-L limit limits the bandwidth that the user can use, in kbit/s.
-O ssh_option If you are accustomed to using the parameter passing method in Ssh_config (5),
-P Port Note is uppercase P, port is the port number specified for data transfer
-S program specifies the programs that are used to encrypt the transmission. This program must be able to understand the options for SSH (1).
Reference Document: Http://www.cnblogs.com/peida/archive/2013/03/15/2960802.html
Different Linux systems that quickly copy files across servers