Some basic stuff here..<br><br>Having trouble with a bash script to download a backup file from a remote server.&nbsp; Plan is to grab a backup file which is created each night and bring it down to another box.&nbsp; Grabs the file created yesterday by defining filename based on today&#39;s date minus one day.<br>
<br>Below is the base of the script and I a just getting error local: file does not exist.&nbsp; Not even attempted the log and email alert part yet what am I missing?&nbsp; Feel very silly :)<br><br>tia <br>W<br><br><br>&lt;script&gt;<br>
<i>**** Some bits removed here. password user host definitions.&nbsp; shebang line is in place thought :)<br><br>FILE=$(date +%Y%m%d --date=&#39;1 days ago&#39;)<br>REMOTEDIR=backups/<br><br>ftp -in &lt;&lt;**<br>open $HOST<br>
user $USER $PASSWD<br>lcd /home/webfund/backups<br>bin<br>mget $REMOTEDIR/$FILE*<br>bye<br>**<br>echo ftp script done</i><br>&lt;/script&gt;<br>