Linux Articles
Tomcat starts adding boot entry vi/etc/rc.d/rc.localservice iptables stop/usr/local/tomcat/bgyappserv01/bin/catalina.sh start Application Server restart: daily 3:10; application Server Backup: Every Monday 4:10 crontab-e10 3 * * * REBOOT10 4 * * 1 Root run-parts/etc/cron.weeklyVI/etc/cron.weekly/jc6backup #!/bin/shmydate= ' Date +%y%m%d 'Tar czvf/root/tomcat/back/183tomcatjc6${mydate}.tar /usr/local/tomcat/bgyappserv01/webapps/jc6find /root/ Tomcat/back/ -mtime +60-name "* *"-exec RM-RF {} \; database server restart: every Saturday 5:10; database server Backup: 3:5 vi per day /etc/rc.d/rc.localservice iptables stop crontab-e5 3 * * * root run-parts/etc/cron.daily10 5 * * 6 reboot vi/etc/cron.daily/ Oraclebackup #!/bin/shsu-oraclemydate= ' Date +%y%m%d ' exp jc6/[email protected] file=/home/oracle/backups /jc6jc6_184_${mydate}.dmp full=y log=/home/oracle/log/explog${mydate}.txtfind/home/oracle/backups-mtime +30-name " * * "-exec rm-rf {} \;find/home/oracle/log-mtime +30-name" * * "-exec RM-RF {} \; chmOD 777 /etc/cron.daily/oraclebackup Document exchange vi/etc/cron.daily/oraclebackup#!/bin/shsu-oraclemydate= ' Date +%y%m%d ' exp edes/[email protected] file=/home/oracle/backups/edes_182_${mydate}.dmp full=y log=/home/ Oracle/log/explog${mydate}.txtfind/home/oracle/backups-mtime +30-name "* *"-exec RM-RF {} \;find/home/oracle/log-mt IME +30-name "*. *"-exec RM-RF {} \;
Windows ChapterApplication Server restarts every Saturday 3:10; start Join boot entry shutdown-r-C "weekly reboot" Tomcat backup taskkill/f/im java.exeset fname=%date:~0,4%%date:~ 5,2%%date:~8,2%
"E:\Program files\winrar\winrar.exe" A-M5 E:\back\jc6\185WebappJc6%fname%.rar E:\tomcat\webapps\jc6
forfiles/p "E:\BACK\JC6"/s/m * * */d-60/c "cmd/c del @path"
E:
CD E:\tomcat\bin\
Start Startup.bat
Pause database Backup backup set mydate=%date:~0,4%%date:~5,2%%date:~8,2%exp jc6/[email protected] File=e:\back\oracle\jc6jc6_at_ Inside186_%mydate%.dmp full=y log=e:\log\explog%mydate%forfiles/p "e:\back\oracle"/s/m * */d-10/c "cmd/c del @path" forfiles/p "E:\Log"/s/m * * */d-10/c "cmd/c del @path" Pause
Linux & Windows Application Server &oracle database server backup