LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 01-31-2013, 10:18 AM   #1
steinz
Member
 
Registered: Mar 2006
Posts: 49

Rep: Reputation: 16
tar - application/service shutdown


Hi,

When running tar, is it necessary to shutdown any application or service that is running?

So, if I am running Oracle and want to backup the oracle home directory before I patch it. Should I shutdown oracle and then run tar? Another was to ask the same question is, does linux put a lock on an executable file if it is currently running?

Thanks
Randy
 
Old 01-31-2013, 10:36 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,823

Rep: Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636
Quote:
Originally Posted by steinz View Post
Hi,
When running tar, is it necessary to shutdown any application or service that is running?

So, if I am running Oracle and want to backup the oracle home directory before I patch it. Should I shutdown oracle and then run tar? Another was to ask the same question is, does linux put a lock on an executable file if it is currently running?
No, all tar does is copy what's there (unless you tell it differently), into an archive file. That said, it is not unlike ANY utility that copies a file, including purpose-built backup software (TSM, Netbackup, etc.). If a file is open AND CHANGING when you copy it, the copy is not to be trusted. Executing a file doesn't change it....but databases are always open and doing something. The best way to back it up is to either shut it down, or to use a dump utility to dump the DB contents to another file.
 
Old 01-31-2013, 10:45 AM   #3
steinz
Member
 
Registered: Mar 2006
Posts: 49

Original Poster
Rep: Reputation: 16
thanks,
I did not want to use tar to backup the database, just the software home.
I do not think any files in that are changing. I was concerned about an os lock on a file that was open, making it inaccessible to tar.


Randy
 
Old 01-31-2013, 11:08 AM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,823

Rep: Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636
Quote:
Originally Posted by steinz View Post
thanks,
I did not want to use tar to backup the database, just the software home.
I do not think any files in that are changing. I was concerned about an os lock on a file that was open, making it inaccessible to tar.
Randy
You shouldn't have problems, but as you probably are aware....your backups are only as good as your TESTING of them. Unless you verify your backups, you shouldn't 100% trust them.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
shutdown and service startip nagavinodh Linux - Newbie 4 09-17-2009 08:01 PM
How to create .diff.gz/.dsc/.orig.tar.gz from a downloaded tar.gz application? frenchn00b Linux - General 4 05-18-2008 09:09 AM
Disabling shutdown service shankarbrnair Fedora 4 10-26-2007 10:28 AM
LSB service shutdown tate_harmann Linux - Newbie 1 08-20-2007 03:12 PM
Service Shutdown and Init Setup g_goblin Solaris / OpenSolaris 1 10-29-2003 03:53 PM


All times are GMT -5. The time now is 11:20 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration