Uploading folder SFTP
  • What's the best way to upload a folder full of files using command line sftp in linux? I know that using filezilla makes life a million times easier, but sometimes I have to transfer data between servers.
  • Well my good man, you're in luck because I just created my upload script. It contains 1 lines and all you need is lftp(http://lftp.yar.ru/).

    lftp -u username,pass -e "mirror -R --delete-first -n /path/to/your/local/app/root /path/to/your/1.ai/app/root" sftp://username.1.ai

    Really easy and it only deletes/uploads newer files ;).

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook


Share Me

  • Please share this topic with your friends. Click any of the icons below:
  • stumbleupon
  • Twitter
  • facebook
  • myspace
  • technorati
  • reddit
  • fark
  • email