In the process of helping customers maintain the site environment, often need to back up the original data, the faster way is directly through SSH transfer files to other FTP space, note the method steps:
Suppose the directory to be backed up is/home/wwwroot/aaa/, and the IP for the remote FTP space is 55.44.33.22
1. Access to the/home/wwwroot/directory
Cd/home/wwwroot
2. Then compress the AAA directory into the tar.gz file package aaa.tar.gz
Tar CFZ aaa.tar.gz AAA
3. Link FTP
FTP 55.44.33.22
Enter the FTP user name, return, enter the FTP password, link success, you should see ftp>
4. Upload just the aaa.tar.gz
Put aaa.tar.gz
Wait until the feedback says it's good to be successful.
Note: If you use the FTP command to prompt This command does not exist
CentOS can directly execute the following command, the installation of the FTP service is generally OK:
Yum Install FTP