LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-03-2014, 02:38 AM   #1
spicy
LQ Newbie
 
Registered: Apr 2014
Posts: 1

Rep: Reputation: Disabled
Application backup script


Hi,

My application is running on MySQL it is installed in RHEL 6.4.

I want take weekly backup for my application. For this I know the command, I created script for this. see below.

skill -KILL java
skill -KILL ls_srvuni
skill -KILL ls_schdlr
cd /home/libsys/jboss-6.1/server/default
rm -rf log/ tmp/ work/

Here, below commands should be start after 10 minutes, for this how to write script.

mysqldump -uroot -plibsys libsys> /home/libsys/databasebackup/`date +%d%m%y`.sql

after taking backup of my application I will restat the services, which loated in rc.local.


kindly give me the solution.

Thanks&Regards,,
Spicy.
 
Old 04-03-2014, 05:05 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
From your description, just re-run the relevant cmd(s) by copying them from rc.local into the backup ctrl script.
I'm assuming there are other things besides them in rc.local.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Which backup application? themalet Linux - General 4 01-17-2012 07:19 AM
What happens with backup-manager.org (very useful backup script)? Murz Linux - Software 3 07-27-2010 06:46 AM
System Backup/Restore script or application stascrash Linux - Newbie 2 02-02-2010 12:47 PM
Newbie trying to write a simple backup script to backup a single folder Nd for school stryker759a Linux - Newbie 2 09-16-2009 08:52 AM
how to create backup MYSQL Script to backup my database for every 1hour RMLinux Linux - Newbie 3 11-20-2008 10:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration