Linux & Windows Application Server &oracle database server backup

Source: Internet
Author: User
Tags iptables

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.