FTP a huge Size file


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting FTP a huge Size file
# 1  
Old 08-17-2011
FTP a huge Size file

Dear All,

Good Evening!!

I have a requirement to ftp a 220GB backup file to a remote backup server.
I wrote a script for this purpose.
But it takes more than 8 hours to transfer this file.
Is there any other method to do it in less time???

Thanks in Advance!!!

---------- Post updated at 05:22 PM ---------- Previous update was at 05:20 PM ----------

I cannot compress / split it as the originality of the file is very important and cannot take even 0.1% risk. Bcoz when the system crashes, using this file I'll be able to restore the entire system.
# 2  
Old 08-17-2011
FTP is doing well in individual large files .
What about rsync is a good option.
Just google for FTP vs rsync
# 3  
Old 08-18-2011
Quote:
Originally Posted by Naga06
Dear All,
I cannot compress / split it as the originality of the file is very important and cannot take even 0.1% risk. Bcoz when the system crashes, using this file I'll be able to restore the entire system.
Why not do a md5sum of the file before you send it and check it on the receving end:

Code:
source_box $ md5sum mybigfile.tar
81836bd568b30ec974bff32af98458d1 *mybigfile.tar
source_box $ gzip mybigfile.tar
source_box $ rsync ./mybigfile.tar.gz dest_box:mybigfile.tar.gz
 
dest_box$ gzip -d mybigfile.tar.gz
dest_box$ $ md5sum mybigfile.tar
81836bd568b30ec974bff32af98458d1 *mybigfile.tar

This User Gave Thanks to Chubler_XL For This Post:
# 4  
Old 08-18-2011
Quote:
Originally Posted by Naga06
I have a requirement to ftp a 220GB backup file to a remote backup server.
I wrote a script for this purpose.
But it takes more than 8 hours to transfer this file.
Is there any other method to do it in less time???
If there was a special 'go faster' data transfer method, most things would be using it already.

The main risk of corruption in transferring something that huge is network blips and timeouts, which can be reduced by reducing the size of what you're sending. In that regard, compression may reduce your risks of corruption.
# 5  
Old 08-18-2011
Quote:
Originally Posted by Corona688
If there was a special 'go faster' data transfer method, most things would be using it already.
Agreed, also if this is for backup purposes why not do what most over people do in this situation - write the data to tape/disk and store off-site but close by. This also has the advantage that recovery time is much quicker as you don't have another 8 hour delay to transfer the data over the network again.
# 6  
Old 08-18-2011
Quote:
Originally Posted by Chubler_XL
Agreed, also if this is for backup purposes why not do what most over people do in this situation - write the data to tape/disk and store off-site but close by. This also has the advantage that recovery time is much quicker as you don't have another 8 hour delay to transfer the data over the network again.
That is also available. We have built a dedicated server for Backup for Security Audit.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

FTP zero size file

Hi AM using unix Aix Ksh I need to clarify regarding sending the zero size file to another server. VAL=ftp.sh -c put souce_file Dest_file $1 $2 $3 $4 $5 $VAL 2 > $ERR When am Sending the Zero Size File getting alerts netout write returned Zero. But i would like to know $VAL... (4 Replies)
Discussion started by: Venkatesh1
4 Replies

2. AIX

FTP huge file transfer

Hi, I need to transfer 2000 files from one host to another.. I modified /etc/security/limits to -1 and ulimit -f, ulimit -s, ulimit -a.. Even then only 700 files are transferred. Could You please help me to sort out this issue.. I think some configuration related to memory is... (3 Replies)
Discussion started by: Priya Amaresh
3 Replies

3. HP-UX

Performance issue with 'grep' command for huge file size

I have 2 files; one file (say, details.txt) contains the details of employees and another file (say, emp.txt) has some selected employee names. I am extracting employee details from details.txt by using emp.txt and the corresponding code is: while read line do emp_name=`echo $line` grep -e... (7 Replies)
Discussion started by: arb_1984
7 Replies

4. Shell Programming and Scripting

Optimised way for search & replace a value on one line in a very huge file (File Size is 24 GB).

Hi Experts, I had to edit (a particular value) in header line of a very huge file so for that i wanted to search & replace a particular value on a file which was of 24 GB in Size. I managed to do it but it took long time to complete. Can anyone please tell me how can we do it in a optimised... (7 Replies)
Discussion started by: manishkomar007
7 Replies

5. Shell Programming and Scripting

Implement in one line sed or awk having no delimiter and file size is huge

I have file which contains around 5000 lines. The lines are fixed legth but having no delimiter.Each line line contains nearly 3000 characters. I want to delete the lines a> if it starts with 1 and if 576th postion is a digit i,e 0-9 or b> if it starts with 0 or 9(i,e header and footer) ... (4 Replies)
Discussion started by: millan
4 Replies

6. Shell Programming and Scripting

Checking the size of a file after FTP

Hi I am doing a FTP process through which I am copying a file from my local server to Remote server. After this I want to check the size of the file Below is my program: LOCALDIR=/batch/ediprocess REMOTESERVER=test.appl.com REMOTEPATH=batch/ftpTest LOGIN=px PASSWORD=abcd ftp -n... (3 Replies)
Discussion started by: shanth_chandra
3 Replies

7. UNIX for Advanced & Expert Users

Need to synchronize filesystems with huge size

Hello, I am using IXOS 3rd party utility to maintain invoices (images) in my client's SAP system. We have a DR (Disaster Recovery) setup & for that I need to synchronize my /ixos filesystem (with size more than 50 GB) between two servers say x182 & x050. Initially I thought to tar the... (4 Replies)
Discussion started by: vishal_ranjan
4 Replies

8. Shell Programming and Scripting

How to compare file size after ftp?

Is possible if I want to campare file size on source and destination after ftp transfer? If anybody know, please explain to me. (1 Reply)
Discussion started by: icemania
1 Replies

9. UNIX for Dummies Questions & Answers

ftp hangs on file size = 0

I have an ftp process which runs every 10 minutes between Unix and an NT box. Normally it works, but when the script tries to get a file from NT that has a length of 0, the ftp process hangs (as if it is still waiting for the end of the file). This is the script... (3 Replies)
Discussion started by: mheinrich
3 Replies

10. UNIX for Advanced & Expert Users

ftp file size

how to compare file size which has been received through ftp get from a remote location with local copy available any clue regards (5 Replies)
Discussion started by: sathiya
5 Replies
Login or Register to Ask a Question