Recursive SFTP

Hello,

I need to transfer files from Serve1 to Server2. Previously I was using scp command. Now I have to use sftp (due to audit issues). The problem with sftp is (atleast to my level of knowledge) we cannot transfer dirs (and files within that dir).

Is there a way to solve this? Looks like I might need to write a shell pgm to list the dir and then create them manually.

Any thoughts are welcome.

Thanks!

I would make a tar
tar -cvf mydir.tar ./dir/

and preferably gzip it.