Page 1 of 1

[Solved]Potential ftp client problem

PostPosted: Jul 24th, '17, 16:19
by mackowiakp
I use to create images of Mageia filesys, such script )part of):

Code: Select all
for i in 8 5 7
do
dd if=/dev/sda$i | gzip -c > /home/maciek/back/RSYNC/piotr_sda$i.img.gz && md5sum /home/maciek/back/RSYNC/piotr_sda$i.img.gz | awk '{ print $1 }' > /home/maciek/back/RSYNC/piotr_sda$i.img.gz.md5 && ncftpput -u user -p passwordmedia /home/Piotr_ISO /home/maciek/back/RSYNC/piotr*
rm -f /home/maciek/back/RSYNC/piotr_sd*
done


After creating ISO file and MD5, files are FTP`ed to QNAP NAS.
It works properly on my wife M5 based desktop and formerly on my M5 based PC. After update of my PC to M6, large ISO files transmission is interrupted in random moments:

Code: Select all
...back/RSYNC/piotr_sda7.img.gz:   ETA:   1:00    5.13/  9.42 GB   72.91 MB/s  Remote write failed after 5529239552 bytes had been sent: Connection reset by peer.
Remote host has closed the connection.
/home/maciek/back/RSYNC/piotr_sda7.img.gz:               9.42 GB   72.52 MB/s 
ncftpput /home/maciek/back/RSYNC/piotr_sda7.img.gz: socket write error.
ncftpput /home/maciek/back/RSYNC/piotr_sda7.img.gz.md5: remote host closed control connection.


I use similar tools to create ISO image of Windows partition (under Windows itself) >
So. Such tool works properly in Win, M5 base my wife PC, not updated to M6 yet, but crasches in M6.

What the problem is?

Re: Potential ftp client problem

PostPosted: Jul 25th, '17, 08:59
by doktor5000
That may be because ncftp recently saw a new release and the version is different then the one from mga5 - http://www.ncftp.com/ncftp/doc/changelog.html

Tried another ftp client already?

Re: Potential ftp client problem

PostPosted: Jul 25th, '17, 09:20
by mackowiakp
No, I dont try another FTP client. So what rpm package (client) You suggest?

Re: Potential ftp client problem

PostPosted: Jul 25th, '17, 12:26
by wintpe
lftp

SYNTAX
lftp [-d] [-e cmd] [-p port] [-u user[,pass]] [site]
lftp -f script_file
lftp -c commands
lftp --version
lftp --help

lftp-4.7.3-1.mga6.x86_64 or newer if available.

regards peter

Re: Potential ftp client problem

PostPosted: Jul 25th, '17, 13:23
by mackowiakp
Ok . THX