Script: Backup Files

#script performs an backup of a files to the specified device
#!/usr/bin/ksh
###
#
#

WARFILE=/backups/warfilebackup/warfile`date +%m%d`.tar
CONFIGFILE=/backups/configfilebackup/configfile`date +%m%d`.tar
WMMFILE=/backups/wmmfilebackup/wmmfile`date +%m%d`.tar

echo "  Begin backup of porlet files at:" `date +"%a %D %H:%M"`
echo " "
cd /usr/IBM/WebSphere/PortalServer/installedApps
# backup DashBoard porlet WAR files.
tar -cvf $WARFILE *
echo "  Finish backup of porlet files at:" `date +"%a %D %H:%M"`
echo " "

echo "  Begin backup of configuration files at:" `date +"%a %D %H:%M"`
echo " "
cd  /usr/IBM/WebSphere/PortalServer/config
# backup configuration files.
tar -cvf $CONFIGFILE *
echo "  Finish backup of configuration files at:" `date +"%a %D %H:%M"`
echo " "


echo "  Begin backup of wmm files at:" `date +"%a %D %H:%M"`
echo " "
cd  /usr/IBM/WebSphere/PortalServer/wmm
# backup wmm files.
tar -cvf $WMMFILE *
echo "  Finish backup of wmm files at:" `date +"%a %D %H:%M"`
echo " "
请使用浏览器的分享功能分享到微信等