scp usage on Linux
备份远程文件
(远程——>本地)
scp -r 远程用户名@ip:文件绝对路径 本地绝对路径
还原远程文件
(本地——>远程)
scp -r 本地路径 远程用户名@ip:远程绝对路径
如果ssh端口号有变化,则使用
-P
参数指定端口号
scp -P port [email protected]:/dir
Disclaimer
- License under
CC BY-NC 4.0
- Copyright issue feedback
me#imzye.me
, replace # with @ - Not all the commands and scripts are tested in production environment, use at your own risk
- No privacy information is collected here