主站打包
tar czf xiaokyun.com.tar.gz *
[xiaokyun@server backups]$ ftp /*启用FTP客户端
ftp> open backup.xiaokyun.com /*打开远程服务器域名或IP
Connected to backup.xiaokyun.com.
220 ProFTPD 1.3.1 Server ready.
500 AUTH not understood
500 AUTH not understood
KERBEROS_V4 rejected as an authentication type
Name (backup.xiaokyun.com:xiaokyun): ftp /*输入用户名
331 Password required for ftp
Password:pwd /*输入密码
230 User ftp logged in
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> put xiaokyun.com.tar.gz xiaokyun.com.tar.gz /*上传文件
local: xiaokyun.com.tar.gz remote: xiaokyun.com.tar.gz
227 Entering Passive Mode (74,82,161,100,139,96).
150 Opening BINARY mode data connection for b.tar.gz
226 Transfer complete
21211756 bytes sent in 90 seconds (2.3e+02 Kbytes/s)
ftp>
镜像站解压
tar zxvf xiaokyun.com.tar.gz