#!/bin/sh
echo "Start Data backup"
echo "."
echo "Start compress data"
cd /home/backup
year=`date +%Y`
month=`date +%m`
day=`date +%d`
now=$year-$month-$day
# mkdir backup_$now
tar zcvf ./backup.tar.gz /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/CCNAP05Cell01/. /opt/image
echo "Finished compress data"
echo "."
echo "Stat Transfter data"
ftp -i -v -n 10.11.184.8 < user ftpuser nluck357
bin
# lcd /home/backup/backup_$now
lcd /home/backup/
cd eDirectApp
prompt
mput *.*
bye
echo "Transfter data finished"
echo "."
阅读(710) | 评论(0) | 转发(0) |