1.传送文件SCP
从服务器下载文件
scp username@servername:/remote_path/filename local_destination/filename
上传本地文件到服务器
scp local_path/local_filename username@servername:/remote_path/
从服务器下载整个目录
scp -r username@servername:/remote_path/remote_dir local_destination/remote_dir
上传目录到服务器
scp -r local_dir username@servername:/remote_path/remote_dir
参数解析:
-r : 包含文件夹传送
rsync
rsync -vrtopgac --delete 传送文件名称 --exclude-from=/usr/local/bin/rsync.ignore root@127.0.0.1:/data/test