Skip navigation

FTP backup via shelscript

1466 Views 3 Replies Latest reply: Feb 11, 2011 12:25 PM by BDAqua RSS
Ramon Pose Calculating status...
Currently Being Moderated
Feb 11, 2011 9:00 AM
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)

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.