开发者

How to have rSync only transfer final folder?

开发者 https://www.devze.com 2023-03-08 06:10 出处:网络
Hey all, I don\'t know how to properly phrase this but when I run (ignore $DESTINATION): rsync -avz tmp $DE开发者_C百科STINATION

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

精彩评论

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