码迷,mamicode.com
首页 > 其他好文 > 详细

scp报错:not a regular file,解决方法:加参数 -r

时间:2015-12-31 12:49:45      阅读:196      评论:0      收藏:0      [点我收藏+]

标签:

命令:scp  -P1234  /data/aa   root@192.0.0..0:/data

文件结构:/data/aa/yearmonth=2015-09

报错:not a regular file

报错原因:这是一个文件夹,而不是文件,因此要加参数-r

正确命令:scp -r -P1234  /data/aa   root@192.0.0..0:/data

 

scp报错:not a regular file,解决方法:加参数 -r

标签:

原文地址:http://www.cnblogs.com/cyfighting/p/5091170.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!