How To Copy A Directory Using sftp

This should not be so hard but here is what I had to do:

  1. get -r dir
  2. locally: mv dir copy_of_dir
  3. mkdir copy_of_dir
  4. put -r copy_of_dir

The remote server complained about Couldn’t fsetstat but it worked.

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s