{"id":499,"date":"2010-06-04T14:04:19","date_gmt":"2010-06-04T06:04:19","guid":{"rendered":"http:\/\/ramfree17.net\/capsule\/?p=499"},"modified":"2010-06-04T14:04:19","modified_gmt":"2010-06-04T06:04:19","slug":"faster-file-copying-over-a-local-network","status":"publish","type":"post","link":"https:\/\/ramfree17.net\/capsule\/?p=499","title":{"rendered":"Faster file copying over a local network"},"content":{"rendered":"<p>What I started to do was to copy a 460MB file from the computer in the project network into my laptop before I leave in an hour. The problem is that when I started mapping the drive containing the file and copying it using Windows explorer the ETC displayed by the file copy dialog box fluctuates between 2-5 hours. This instability and slowness is a pet peeve I have against the Windows copy process over CIFS\/SMB shares. I know copying from the command line is going to be faster but without a progress meter I don&#8217;t know when it is going to be finished.<\/p>\n<p>The next option I did was to share it the webserver hosted in the remote box and then tried to download it. The download speed range is between 30-75kbps so the ETC reported by the browser is between 2-3 hours. It may be faster but not fast enough for my needs. Then I realized that I have rsync inside the cygwin install in the laptop. As I have already the network share mapped to Z: drive so the simple command<\/p>\n<p><code>$ rsync -avp --partial --progress \/cygdrive\/z\/Temp\/bigfile.zip .\/<\/code><\/p>\n<p>started the transfer which was a whopping speed range of 230-420Kbps. ETC is now 15-20 minutes. Problem solved so I am writing this blog while waiting for the transfer to complete. For those interested with the rsync options:<\/p>\n<ul>\n<li>-avp : copy the file in <strong>a<\/strong>rchive mode, <strong>p<\/strong>reserve permissions and increase <strong>v<\/strong>erbosity.<\/li>\n<li>&#8211;partial : if the error fails, don&#8217;t delete the transferred chunks so it can be used for resuming the transfer.<\/li>\n<li>&#8211;progress : show the copy progress.<\/li>\n<\/ul>\n<p>Why didn&#8217;t I just use a USB stick? It is because the company has locked down the USB storage drivers and while <strong>somebody who amazingly has a strong resemblance to me<\/strong> can do something about it, it would be too troublesome to pursue. FTP might have been a good choice of protocol as this is a secured environment but from experience the antiquated file transfer protocol only has a slight advantage over HTTP in terms transfer speeds.<\/p>\n<p>ciao!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What I started to do was to copy a 460MB file from the computer in the project network into my laptop before I leave in an hour. The problem is that when I started mapping the drive containing the file and copying it using Windows explorer the ETC displayed by the file copy dialog box [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,6],"tags":[],"class_list":["post-499","post","type-post","status-publish","format-standard","hentry","category-floss","category-technology"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/ramfree17.net\/capsule\/index.php?rest_route=\/wp\/v2\/posts\/499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ramfree17.net\/capsule\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ramfree17.net\/capsule\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ramfree17.net\/capsule\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ramfree17.net\/capsule\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=499"}],"version-history":[{"count":0,"href":"https:\/\/ramfree17.net\/capsule\/index.php?rest_route=\/wp\/v2\/posts\/499\/revisions"}],"wp:attachment":[{"href":"https:\/\/ramfree17.net\/capsule\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ramfree17.net\/capsule\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ramfree17.net\/capsule\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}