The script can't find the file in /root/backup.....
any ideas?
Code:
#!/bin/bash
/bin/tar cfz /root/backup-`/bin/date +%d%m%Y`.tar.gz /etc /var/log /var/www /usr/lib/squid/ncsa_auth > /root/my_logfile.log 2>&1
USER="myusername"
PASS="mypassword"
FTPSERVER="ftp.myserver.net"
FILE1="/root/backup-`/bin/date +%d%m%Y`.tar.gz"
ftp -inv $FTPSERVER <<END_SCRIPT
quote USER $USER
quote PASS $PASS
put $FILE1
bye
Code:
Remote system type is UNIX.
Using binary mode to transfer files.
331 Password required for *****
230 User *****logged in
local: /root/backup-14082009.tar.gz remote: /root/backup-14082009.tar.gz
227 Entering Passive Mode (77,232,67,103,225,193).
550 /root/backup-14082009.tar.gz: No such file or directory
221 Goodbye.