rsync - create all missing parent directories?

前端 未结 7 1445
一个人的身影
一个人的身影 2020-12-29 01:32

I\'m looking for an rsync-like program which will create any missing parent directories on the remote side.

For example, if I have /top/a/b/c/d

相关标签:
7条回答
  • 2020-12-29 02:00

    You may be looking for

    rsync -aR
    

    for example:

    rsync -a --relative /top/a/b/c/d remote:/
    

    See also this trick in other question.

    0 讨论(0)
提交回复
热议问题