scp 传目录

scp -rp user1@host1:/filepath1 user2@host2:/filepath2

-p      Preserves modification times, access times, and modes from the original file.
备份模式(修改时间、访问时间及modes)

-r      Recursively copy entire directories.
递归地复制整个目录