recursively use scp but excluding some folders

后端 未结 6 740
庸人自扰
庸人自扰 2021-01-30 12:25

Assume there are some folders with these structures

/bench1/1cpu/p_0/image/
/bench1/1cpu/p_0/fl_1/
/bench1/1cpu/p_0/fl_1/
/bench1/1cpu/p_0/fl_1/
/bench1/1cpu/p_0         


        
6条回答
  •  清歌不尽
    2021-01-30 12:55

    This one works fine for me as the directories structure is not important for me.

    scp -r USER@HOSTNAME:~/bench1/?cpu/p_?/image/ .
    

    Assuming /bench1 is in the home directory of the current user. Also, change USER and HOSTNAME to the real values.

提交回复
热议问题