A Better Way to FTP (DRAFT) |
This page includes a quick example of how to use lftp which makes transfering files to gps a bit more efficient.
lftp makes it easy to chain together the ftp commands that you would use to transfer logs from a customer system to gps.quantum.com. Using the -e parameter, you surround all comands in two single quotes and separate them using a semi-colon. The commands are then executed in order.
In the following example, we cd to /incoming/SR3316412, put the file, then disconnect with bye. The username is specified with -u username,password. The example below is using a blank password. Last we specify the name or IP of gps.quantum.com. You'll also notice that lftp gives us a transfer rate and eta. However, I'm not sure how accurate this is.
[root@Ren-Dedupe tmp]# lftp -e 'cd /incoming/SR3316412; put /snfs/tmp/bpwd-1390353764-gcore.31289-reported.gz; bye' -u anonymous, gps.quantum.com
This page was generated by the BrainKeeper Enterprise Wiki, © 2018 |