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.
精彩评论