开发者

How to have rSync only transfer final folder?

Hey all, I don't know how to properly phrase this but when I run (ignore $DESTINATION):

rsync -avz tmp $DE开发者_C百科STINATION

it will transfer the full path of tmp. So save if tmp is in /root/tmp instead of putting just tmp in my destination folder it puts the full path of /root/tmp or wherever it is located... is there a way around this? I just want to put the specific directory and everything in it... not the path above it as well.

Thanks


use -R to use relative file names.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜