我有一个父目录" PAR"在远程服务器中,它有多个子目录,如
sys/PAR/ABCD
sys/PAR/ABEF
sys/PAR/ABGH
sys/PAR/ABIK
.... so on..
每个子目录里面都有多个文件,我试图在unix中同时使用scp
命令在本地机器中递归复制所有文件(ABCD和ABEF)中的2个子目录(ABCD和ABEF)。我不想使用scp
命令复制两个子目录2次。我尝试了下面给出的多个选项
scp -r user@remote_server:sys/PAR/AB[CE][DF]/* local_path
scp -r user@remote_server:sys/PAR/AB[CE][DF] local_path
scp -r user@remote_server:sys/PAR/{ABCD,ABEF}/* local_path
scp -r user@remote_server:sys/PAR/{ABCD/*,ABEF/*} local_path
scp -r user@remote_server:sys/PAR/\{ABCD/*,ABEF/*\} local_path
scp -r user@remote_server:sys/PAR/\{ABCD,ABEF\}/* local_path
scp -r user@remote_server:sys/PAR/\{ABCD,ABEF\} local_path
scp -r user@remote_server:{sys/PAR/ABCD,sys/PAR/ABEF} local_path
scp -r user@remote_server:{sys/PAR/ABCD/*,sys/PAR/ABEF/*} local_path
但我收到错误消息:
scp: [..] No such file or directory
脚本启动器:putty
操作系统:Solaris 10
请建议我如何实现这一目标
谢谢..