scp: /xxxx: not a regular file

 

问题描述 

scp root@10.2.1.92:/home /home/wangju/databak
root@10.2.1.92's password: xxxx
scp: /home: not a regular file

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

正确命令:scp -r root@10.2.1.92:/home /home/wangju/databak

 

另外:

关于scp的更多命令

https://www.cnblogs.com/bravehunter/p/5653317.html

参考了这篇博客的答案

https://www.cnblogs.com/cyfighting/p/5091170.html

感谢前辈们的总结

posted @ 2019-05-29 09:56  wangju003  阅读(534)  评论(0编辑  收藏  举报