Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
General Linux > Web/FTP/Networking > Issue <<  186 of 212 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 10784
Last update: 11-16-07
Issue:
How do I reliably upload large files to a blind FTP server?
Resolution:

Problem: Large FTP uploads do not complete reliably. Since many public FTP servers (such as dropbox.redhat.com) use blind upload directories, failed uploads to these servers must be resumed from the beginning.

Cause: Some FTP clients cannot properly handle files 2 GB or larger. Additionally, mild network congestion is more likely to disrupt uploads that take a long time to complete.

Recommendation: Use the split command to break a large file into smaller chunks. If a single chunk upload fails, only that chunk needs to be repeated.

Example:

[root@localhost example]# ll
total 4538044
-rw-r--r-- 1 root root 4642406400 May 8 15:41 reallybigfile.tar.bz2
[root@localhost example]# split -b 512m -d reallybigfile.tar.bz2
reallybigfile.tar.bz2.part
[root@localhost example]# ll
total 9076144
-rw-r--r-- 1 root root 4642406400 May 8 15:41 reallybigfile.tar.bz2
-rw-r--r-- 1 root root 536870912 May 8 15:49 reallybigfile.tar.bz2.part00
-rw-r--r-- 1 root root 536870912 May 8 15:50 reallybigfile.tar.bz2.part01
-rw-r--r-- 1 root root 536870912 May 8 15:50 reallybigfile.tar.bz2.part02
-rw-r--r-- 1 root root 536870912 May 8 15:51 reallybigfile.tar.bz2.part03
-rw-r--r-- 1 root root 536870912 May 8 15:51 reallybigfile.tar.bz2.part04
-rw-r--r-- 1 root root 536870912 May 8 15:52 reallybigfile.tar.bz2.part05
-rw-r--r-- 1 root root 536870912 May 8 15:52 reallybigfile.tar.bz2.part06
-rw-r--r-- 1 root root 536870912 May 8 15:52 reallybigfile.tar.bz2.part07
-rw-r--r-- 1 root root 347439104 May 8 15:52 reallybigfile.tar.bz2.part08

This example splits a 4.6 GB file into 9 parts, each no larger than 512 MB. The parts can be reassembled using cat.


How well did this entry answer your question?


good wrong incomplete out of date
General Linux > Web/FTP/Networking > Issue <<   186  of  212  >>