Author Topic: MB FTP to two different servers? **solved**  (Read 718 times)

0 Members and 1 Guest are viewing this topic.

Offline lobsterman

  • Senior Contributor
  • ****
  • Posts: 164
    • Cape Small Harbor Weather
MB FTP to two different servers? **solved**
« on: October 21, 2017, 10:22:38 PM »
I have my MB unit working well and wonder if it can be configured to upload via FTP to two different servers? I note I can create a second FTP service but cannot see how to setup the FTP user/pwd details for the second site.

UPDATE: this was just pointed out to me:
Quote
When you want to upload data to another FTP server, you can use a fully qualified URL-like FTP notation in the "Path" field. Format of the FTP URI has to be: ftp://user:password@host:port/path. Please notice that none of the elements is allowed to miss. Example: ftp://johndoe:mysecret@ftp.server.com:21/public_html/index.html
« Last Edit: October 22, 2017, 04:53:32 AM by docbee »

Offline Bushman

  • Forecaster
  • *****
  • Posts: 7549
    • Eagle Bay Weather
Re: MB FTP to two different servers?
« Reply #1 on: October 21, 2017, 10:34:18 PM »
Use a "script" event rather than an FTP
Need low cost IP monitoring?  http://wirelesstag.net/wta.aspx?link=NisJxz6FhUa4V67/cwCRWA or PM me for 50% off Wirelesstags!!

Offline lobsterman

  • Senior Contributor
  • ****
  • Posts: 164
    • Cape Small Harbor Weather
Re: MB FTP to two different servers?
« Reply #2 on: October 21, 2017, 10:41:23 PM »
OK, I see that option but am not sure how it works. Can you point me to some examples for FTP upload, for example?
« Last Edit: October 21, 2017, 10:50:42 PM by lobsterman »

Offline Bushman

  • Forecaster
  • *****
  • Posts: 7549
    • Eagle Bay Weather
Re: MB FTP to two different servers?
« Reply #3 on: October 21, 2017, 11:12:06 PM »
I personally have not ttried this n MB, but I _think_ it should work.  Example:

#!/bin/sh
HOST='ftp.users.qwest.net'
USER='yourid'
PASSWD='yourpw'
FILE='file.txt'

ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
put $FILE
quit
END_SCRIPT
exit 0
Need low cost IP monitoring?  http://wirelesstag.net/wta.aspx?link=NisJxz6FhUa4V67/cwCRWA or PM me for 50% off Wirelesstags!!