hello,
im trying to ftp my database dump file automatically.
just to clarify the cron works fine.
the contents of the script looks like below:
Quote:
#!/bin/sh
date=`date '+%d-%m-%y'`
mysqldump -A --user=user--password=pass| /usr/bin/bzip2 -c > /home/backup/db/$date.sql.bz2
ftp -in $server <<EOF
quote USER $username
quote PASS $password
prompt
binary
mput /home/backup/db/*
quit
EOF
|
the server, username and password are all entered directly but i've just replaced them with dummy variables to show this script.
this does the dump fine but never does the ftp part. however if i copy and run this directly via ssh console it works fine. i dont know which log file i should be looking at for possible errors as i dont see one for ftp in /var/log/.
any help would be much appreciated.