- 论坛徽章:
- 0
|
Done! The new backup file is: /backup/mailbak/Mail47data-20060906.tar.gz\n
'AUTH': command not understood.
'AUTH': command not understood.
KERBEROS_V4 rejected as an authentication type
Interactive mode on.
mput /backup/mailbak/Mail47data-20060906.tar.gz? Mail47data-20060906.tar.gz: Cannot create file.
脚本如下:
DATE=`date +%Y%m%d`
MAIL_DIR="/test"
#Ftp Informaition
Host=202.75.221.69
Username=test
Passwd=test
# Backup directory
BACKUP_DIR="/backup/mailbak"
#Backup start
echo "Backuping the Mail data directory, please wait...\n"
if tar -zcvpPf $BACKUP_DIR/Mail47data-$DATE.tar.gz $MAIL_DIR
then
echo "Done! The new backup file is: $BACKUP_DIR/Mail47data-$DATE.tar.gz\n"
else
echo"Sorry please retry,the backup is not success!"
fi
echo "open $Host
user $Username $Passwd
bin
cd ./
prompt off
mput $BACKUP_DIR/Mail47data-$DATE.tar.gz
printf "\n"
close
bye"|ftp -i -n
有哪位朋友帮忙看下?谢谢 |
|