Thanks for the replies.
rsync worked out any issues.
Originally Posted by colucix
Just one command:
rsync -av --include '*/' --exclude '*' /path/to/dir user@host:
Thank you colucix for the solution.
Unspawn, your solution worked similar to rsync. combination of multiple commands was nice.
RaviTezu thanks for replying and pointing to -p option in mkdir. It shall be tough for me to compare each and every sub directories and create the same structure as number of sub directories is huge and i can commit errors while creating also.