如果需要上传或者下载目录,加上-r参数
[lsx@tcbj3-mgm01 ~]$ history|grep sc
1735 2019-08-07 11:00:08 scp gmd@tcbj3-dmetl01:/atmd/etltasks/gmd/gmd.tar.gz .
1841 2019-08-16 16:26:46 scp upload.sh dcadmin@tcbj3-dmdis01
如果需要上传或者下载目录,加上-r参数
[lsx@tcbj3-mgm01 ~]$ history|grep sc
1735 2019-08-07 11:00:08 scp gmd@tcbj3-dmetl01:/atmd/etltasks/gmd/gmd.tar.gz .
1841 2019-08-16 16:26:46 scp upload.sh dcadmin@tcbj3-dmdis01