Re: [lftp] Pardon my slowness, but I have a basic question on uploading a file to my NAS
On 31.05.2018 14:38, john Niendorf wrote: I have read the man page for LFTP as well as searched on the web, but I guess I fundamentally do not understand the basics of LFTP. My question is: How would I move a file from ~/Desktop to the NAS public directory? I can do this in Filezilla, but have been unable to get it to work from the command line. I tried several variations of : lftp mput ftp:// id="-x-evo-selection-start- marker">192.168.1.238/public /home/john/Desktop/*.txt -p 21 -u , I am using mput to avoid typing the exact name of the file each time. The public directory on the NAS is open to all users, but anonymous FTP is disabled. A user name and password is required to FTP into the public directory. What am I doing wrong? I would greatly appreciate any help. try lftp -c 'open -u , 192.168.1.238; mput -O /public /home/john/Desktop/*.txt' -- Kai Stian Olstad ___ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp
Re: [lftp] Problem with Spam in Gmail with this list
On Wednesday 11. February 2015 09:43:26 Juan Simón wrote: I have a problem related to this mail list. Gmail considers some mails of this list like spam. I have added the email address of this list in contacts but it still occurs. Is there any solution? Create a filter an tick the box Never send it to Spam. -- Kai Stian Olstad ___ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp
Re: [lftp] 100% spinning CPU when uploading (maybe over ftps?)
Hi From man lftp OPTIONS -d Switch on debugging mode. - Kai Stian On Wednesday 28. January 2015 16:32:22 SanskritFritz wrote: I would do it gladly. Is there a description about the process somewhere? Currently I don't know how to provide debug output. On Wed, Jan 28, 2015 at 4:12 PM, Alexander Lukyanov lavv...@gmail.com wrote: Can you provide more details on the issue? For example, debug output from lftp sometimes helps to identify the problem. 2015-01-05 16:21 GMT+03:00 SanskritFritz sanskritfr...@gmail.com: On Tue, Apr 16, 2013 at 1:08 PM, Charlie Allom char...@mediasp.com wrote: solved. On Thu, Mar 28, 2013 at 03:09:32PM +, Charlie Allom char...@mediasp.com wrote: We see some of our batch lftp processes spinning and we're not sure why/when. We don't yet know if it's FTPS only. We tuned our tcp buffers to be less aggressive and this issue went away. These values are working for us: net.ipv4.tcp_rmem=4096 87380 6250 net.ipv4.tcp_wmem=4096 16384 6250 I also experience 100% CPU load during upload. However, I'm using plain ftp, this is my config file: open ftp://myuser:mypassw...@ftp.livedrive.com mirror --continue --reverse --verbose=3 --delete /Backup/.obnam_repository_encfs /Backup/.obnam_repository_encfs close exit I don't understand the proposed workaround and I before applying it, I'd like to know what side effects should I expect if I tune my system that way. Can you please help me with this? I saw one bug report similar to this, but it is marked as solved: https://github.com/lavv17/lftp/issues/39 Should I comment on that with my problem or open a new one? I'm using lftp 4.6.1. Thanks in advance for your help. ___ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp -- Alexander. ___ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp ___ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp
Re: [lftp] Move files to ftp
On Wednesday 24. December 2014 16:37:20 Alexander Lukyanov wrote: Please try http://lftp.yar.ru/ftp/devel/lftp-4.6.0.20141224.tar.gz, it has the option --Remove-source-files fixed to remove files already present at the target site. Hi, That was quick :-) Tested it, and the target files are now being removed. Thank you. -- Kai Stian ___ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp
Re: [lftp] Move files to ftp
Hi, Thank you, looking forward to the solution. - Kai Stian On Wednesday 17. December 2014 19:50:00 Alexander Lukyanov wrote: Ok, I see the problem. I'll implement a solution. 17.12.2014 17:34 пользователь Kai Stian Olstad kai.stian.ols...@gmail.com написал: Hi, My challenge is that I have no control over when files appear in the source folder, so running a rm -rf after a lftp most probably will delete new files that have been added to source. - Kai Stian On Wednesday 17. December 2014 12:05:18 Alexander Lukyanov wrote: You can run rm -rf after mirror to remove any remaining files. 23:37, сб, 13.12.2014, Kai Stian Olstad kai.stian.ols...@gmail.com: Hi, I'm trying to move files recursive to a ftp server. Since mput doesn't support moving files recursive I'm using mirror instead. lftp -e 'mirror -c -p -R --Remove-source-files /source /target; bye' -u ftp ftp://192.168.1.10 This sort of work since it remove the source files aka. move on the first run. But if the same files is copied in to /target directory again with cp -p to preserve the modification time, lftp doesn't put the file to the ftp server since the file already exist in /target and it doesn't remove the source file either. Shouldn't lftp remove the source anyway since I used the --Remove-source-files argument? Or is there another way to achieve this? -- Kai Stian Olstad PS: I tried sending this mail from a different domain but it did not go through so I'll try with Gmail. ___ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp ___ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp
Re: [lftp] Move files to ftp
Hi, My challenge is that I have no control over when files appear in the source folder, so running a rm -rf after a lftp most probably will delete new files that have been added to source. - Kai Stian On Wednesday 17. December 2014 12:05:18 Alexander Lukyanov wrote: You can run rm -rf after mirror to remove any remaining files. 23:37, сб, 13.12.2014, Kai Stian Olstad kai.stian.ols...@gmail.com: Hi, I'm trying to move files recursive to a ftp server. Since mput doesn't support moving files recursive I'm using mirror instead. lftp -e 'mirror -c -p -R --Remove-source-files /source /target; bye' -u ftp ftp://192.168.1.10 This sort of work since it remove the source files aka. move on the first run. But if the same files is copied in to /target directory again with cp -p to preserve the modification time, lftp doesn't put the file to the ftp server since the file already exist in /target and it doesn't remove the source file either. Shouldn't lftp remove the source anyway since I used the --Remove-source-files argument? Or is there another way to achieve this? -- Kai Stian Olstad PS: I tried sending this mail from a different domain but it did not go through so I'll try with Gmail. ___ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp ___ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp