Re: How do I scp extremely large files
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 08 Feb 2012 22:37:40 -0800
On Sat, 4 Feb 2012 18:03:22 -0800 (PST), Mike <mikesmith813@xxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :
I need to copy extremely large files (30-100G) from a remove server to
a machine where my code will be running. I have code in place now
that uses an sftp connection to scan the file directory watching for
files to show up for me to copy. My question is how do I read in
chunks of these large files and write them out in chunks? I cannot
hold the bytes in memory obviously. Any help or pseudo code is
greatly appreaciated!
If your roll your own system, you might want to consider bundling the
small files and zipping as the Replicator does. You would have to
run a script on the server to unpack them. The Replicator only uploads
files that have changed. See
http://mindprod.com/webstart/replicator.html
If the files have only minor changes, you might consider hosting a
version control system on the server. The server can then check out
files that have changed. You get the advantage of atomic updates,
something you will not get with an FTP system. You also can check in
files from many sources directly to the server.
--
Roedy Green Canadian Mind Products
http://mindprod.com
One of the most useful comments you can put in a program is
"If you change this, remember to change ?XXX? too".
.
- References:
- How do I scp extremely large files
- From: Mike
- How do I scp extremely large files
- Prev by Date: Re: How do I scp extremely large files
- Next by Date: Re: 200 Java Books
- Previous by thread: Re: How do I scp extremely large files
- Next by thread: Poll: Is a Java Method an Instance of the Java Class java.lang.reflect.Method? Please reply with YES or NO.
- Index(es):
Relevant Pages
|