Smart way to copy multiple files from different paths usinc scp

后端 未结 5 866
北荒
北荒 2021-02-08 13:04

I would like to know an easy way to use scp to copy files and folders that are present in different paths on my file system. The ssh destination server requests a password and I

5条回答
  •  独厮守ぢ
    2021-02-08 13:33

    in addition to the already mentioned glob:

    you can use {,} to define alternative paths/pathparts in one single statement

    e.g.: scp user@host:/{PATH1,PATH2} DESTINATION

提交回复
热议问题