Recursive SFTP Put
PirateNinja
Icrontian
Hi Icrontic
I have a situation where I am transferring digital assets from record labels to popular social networking sites for monetization and partnership programs.
Anyways, doing so requires a sftp setup like so:
All assets that I need to transfer are on a linux server which I have ssh access too. Command line only.
I need to transfer files from that linux server via sftp (no alternative here) to another server which I believe runs Windows but that doesn't matter much.
Anyways, there about 591 directories and the directory structure must remain intact.
So here is my problem:
How do use sftp commands to transfer the directories? From my understanding I can't do this with put and/or mput. At least I haven't been able to so far.
Who knows how to do this? I have to use sftp, no rsync or alternative.
Otherwise I am going to spend hours typing mkdir xxx, cd xxx, put /aa/bb/*.* etc etc
I have a situation where I am transferring digital assets from record labels to popular social networking sites for monetization and partnership programs.
Anyways, doing so requires a sftp setup like so:
All assets that I need to transfer are on a linux server which I have ssh access too. Command line only.
I need to transfer files from that linux server via sftp (no alternative here) to another server which I believe runs Windows but that doesn't matter much.
Anyways, there about 591 directories and the directory structure must remain intact.
So here is my problem:
How do use sftp commands to transfer the directories? From my understanding I can't do this with put and/or mput. At least I haven't been able to so far.
Who knows how to do this? I have to use sftp, no rsync or alternative.
Otherwise I am going to spend hours typing mkdir xxx, cd xxx, put /aa/bb/*.* etc etc
0
Comments
With scp, you should be able to use:
Trying this now, thanks. After authorization nothing is happening ... so it appears, maybe files are being transferred. I don't know how to tell. Here is what I see:
As per the tar ball, I don't know how to extract one given that I am connecting a Windows host and I only have ftp commands available to me. But if there is a way I can try that too.
rsync -rv -e ssh local/directory/ user@host:remote/directory/
in the event that some of your files have already copied (via the scp earlier) rsync will figure out and transfer only what needs to be moved.