LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   lftp mirror problem (http://www.linuxquestions.org/questions/linux-software-2/lftp-mirror-problem-758040/)

ycxbiao 09-27-2009 03:39 AM

lftp mirror problem
 
I want to mirror a remote ftp site by using the command below:
lftp -c "mirror --use-pget-n=6 --ignore-time --verbose ftp://usrname:passwd@XXX.XXX.XXX.XXX/ /home/ftptest/lftp/log”
This command does work, and i make this command execute at every 3-minute interval by crontab settings.
But the problem is, when it was downloading a file at the ftp site which is too big to be finished in 3 minutes, it will continue downloading it in next time interval when the command is launched again, however, after serveral intervals, i found the size of the file at my local machine doesn't grow consistently, but loops between some two values.
I am so confused by this problem, did i do sth wrong in using this command?

ycxbiao 09-27-2009 09:42 PM

Anyone can help me ???
 
Below is the size varation of the file a.iso

[root@cadillac log]# ls -l
total 16692
-rw-r--r-- 1 root root 542822694 Sep 28 10:34 a.iso

[root@cadillac log]# ls -l
total 34440
-rw-r--r-- 1 root root 545988022 Sep 28 10:34 a.iso

[root@cadillac log]# ls -l
total 53804
-rw-r--r-- 1 root root 549332902 Sep 28 10:34 a.iso

[root@cadillac log]# ls -l
total 65232
-rw-r--r-- 1 root root 550985070 Sep 28 10:34 a.iso

[root@cadillac log]# ls -l
total 87064
-rw-r--r-- 1 root root 554680366 Sep 28 10:34 a.iso

[root@cadillac log]# ls -l
total 104156
-rw-r--r-- 1 root root 557739990 Sep 28 10:34 a.iso

[root@cadillac log]# ls -l
total 130656
-rw-r--r-- 1 root root 562467710 Sep 28 10:34 a.iso

[root@cadillac log]# ls -l
total 150424
-rw-r--r-- 1 root root 565278278 Sep 28 10:34 a.iso

[root@cadillac log]# ls -l
total 180292
-rw-r--r-- 1 root root 570253606 Sep 28 10:34 a.iso

[root@cadillac log]# ls -l
total 237988
-rw-r--r-- 1 root root 580043534 Sep 28 10:34 a.iso

[root@cadillac log]# ls -l
total 324024
-rw-r--r-- 1 root root 595865830 Sep 28 10:34 a.iso

[root@cadillac log]# ls -l
total 357932
-rw-r--r-- 1 root root 601999558 Sep 28 10:34 a.iso

[root@cadillac log]# ls -l
total 380348
-rw-r--r-- 1 root root 605519646 Sep 28 10:34 a.iso

[root@cadillac log]# ls -l
total 422136
-rw-r--r-- 1 root root 612093566 Sep 28 10:34 a.iso

[root@cadillac log]# ls -l
total 447064
-rw-r--r-- 1 root root 616214574 Sep 28 10:34 a.iso

[root@cadillac log]# ls -l
total 464860
-rw-r--r-- 1 root root 619174286 Sep 28 10:34 a.iso

[root@cadillac log]# ls -l
total 474532
-rw-r--r-- 1 root root 620939398 Sep 28 10:34 a.iso

[root@cadillac log]# ls -l
total 493488
-rw-r--r-- 1 root root 624268350 Sep 28 10:34 a.iso

[root@cadillac log]# ls -l
total 519808
-rw-r--r-- 1 root root 627630606 Sep 28 10:34 a.iso

[root@cadillac log]# ls -l
total 533568
-rw-r--r-- 1 root root 629857630 Sep 28 10:34 a.iso

[root@cadillac log]# ls -l
total 556436
-rw-r--r-- 1 root root 632772454 Sep 28 10:35 a.iso

[root@cadillac log]# ls -l
total 576100
-rw-r--r-- 1 root root 540772326 Sep 28 10:35 a.iso
-rw-r--r-- 1 root root 635181926 Sep 28 10:35 a.iso~

[root@cadillac log]# ls -l
total 616144
-rw-r--r-- 1 root root 544471966 Sep 28 10:35 a.iso
-rw-r--r-- 1 root root 639275422 Sep 28 10:35 a.iso~

[root@cadillac log]# ls -l
total 688064
-rw-r--r-- 1 root root 550956110 Sep 28 10:35 a.iso
-rw-r--r-- 1 root root 646012966 Sep 28 10:35 a.iso~

[root@cadillac log]# ls -l
total 711924
-rw-r--r-- 1 root root 554655750 Sep 28 10:35 a.iso
-rw-r--r-- 1 root root 647654998 Sep 28 10:35 a.iso~

[root@cadillac log]# ls -l
total 737284
-rw-r--r-- 1 root root 558549422 Sep 28 10:35 a.iso
-rw-r--r-- 1 root root 647686144 Sep 28 10:35 a.iso~

[root@cadillac log]# ls -l
total 888556
-rw-r--r-- 1 root root 582386398 Sep 28 10:35 a.iso
-rw-r--r-- 1 root root 647686144 Sep 28 10:35 a.iso~

[root@cadillac log]# ls -l
total 538768
-rw-r--r-- 1 root root 542954462 Sep 28 10:36 a.iso
-rw-r--r-- 1 root root 627160006 Sep 28 10:36 a.iso~

[root@cadillac log]# ls -l
total 651908
-rw-r--r-- 1 root root 551761198 Sep 28 10:36 a.iso
-rw-r--r-- 1 root root 635881310 Sep 28 10:36 a.iso~


All times are GMT -5. The time now is 10:03 PM.