I was in a complex situation. I needed to transfer a folder of size 5 GB from server A to server C. The problem was that i can only access server A from server B, and server B from server C.
I could transfer the folder from A to B by scp, and do the same thing again for server B and C. But the problem was that I was limited in disk space in server B. So i tried several methods such as pipes, tunneling, port forwarding. But I failed and i did not have enough time to debug. Then suddenly an idea came to my mind, afterall I am an engineer, i should have found out simple work arounds, as Bill gates said, I prefer lazy persons as they will find an way to do things easily, lol.
Here is what I did, I used a bash script that allowed me to upload files from A to drop box directly over command line. Then i just downloaded that folder to my local server C. Here is the link of the dropbox uploader script, https://github.com/andreafabrizi/Dropbox-Uploader. The only limitation is individual files should be under 300 MB. The process is simple and described in the above page.
I thought I should share this with you guys. :)
-->
I could transfer the folder from A to B by scp, and do the same thing again for server B and C. But the problem was that I was limited in disk space in server B. So i tried several methods such as pipes, tunneling, port forwarding. But I failed and i did not have enough time to debug. Then suddenly an idea came to my mind, afterall I am an engineer, i should have found out simple work arounds, as Bill gates said, I prefer lazy persons as they will find an way to do things easily, lol.
Here is what I did, I used a bash script that allowed me to upload files from A to drop box directly over command line. Then i just downloaded that folder to my local server C. Here is the link of the dropbox uploader script, https://github.com/andreafabrizi/Dropbox-Uploader. The only limitation is individual files should be under 300 MB. The process is simple and described in the above page.
I thought I should share this with you guys. :)

No comments:
Post a Comment