Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

FTP backup via shelscript

i picked up this nice shellscript and modified it a bit.



*user_Name="censored" # User Name.*
*pass_Word="censored" # Password*

*file01="sitemap.xml" # File to download.*


*tDirectory="../public_html/" # Directory to upload to.*

*bURL="82.195.224.120" # FTP server.*

*tDate=$(date +%Y%m%d)*

*mkdir $HOME/Desktop/$tDate/*

*# Download file01.*
*curl ftp://$user_Name:$pass_Word@$bURL/$file01 >> $HOME/Desktop/$tDate/$file01*

but my problem is that it doesn't can connect to the server i think because the folder at least it generates....

Message was edited by: Ramon Pose

Macbook Pro, Mac OS X (10.6.6)

Posted on Feb 11, 2011 8:59 AM

Reply
3 replies

Feb 11, 2011 10:35 AM in response to Ramon Pose

Hi Ramon, and a warm welcome to the forums! 🙂

With ftp you may need to turn off the Firewall to get through.

Active FTP vs. Passive FTP, a Definitive Explanation...

http://slacksite.com/other/ftp.html

I'd try a couple of other ftp clients like CyberDuck or Captain ftp...

http://www.macorchard.com/filetransfer/

Though I use TransmitX myself...

http://www.panic.com/transmit/

FTP backup via shelscript

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.