LinuxQuestions.org
Review your favorite Linux distribution.
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 08-06-2009, 05:24 AM   #1
sbarrie
LQ Newbie
 
Registered: Feb 2006
Posts: 2

Rep: Reputation: 0
appending dump backups


I have a query regarding how to use dump to backup a series of file systems to a single tape. I discovered that after the first dump the tape rewinds so any dump backups run afterwards will start at the beginning of the tape again and overwrite the data that has just been backed up.

I found that if you use the nst tape device instead of st the tape should not automatically rewind, but after changing my script to use /dev/nst0 it looks like the tape is still going back to the beginning. When each dump starts the message below is logged:
"Volume 1 started with block 1 at: <date>"

I would expect the later jobs not to be starting at block 1 if the backups are being appended.

The script uses the commands below.

/sbin/dump -0u -f /dev/nst0 /
/sbin/dump -0u -f /dev/nst0 /fs1
/sbin/dump -0u -f /dev/nst0 /fs2

What do I have to do to get fs1 and fs2 to backup on the end of the tape?
 
Old 08-06-2009, 06:36 AM   #2
sbarrie
LQ Newbie
 
Registered: Feb 2006
Posts: 2

Original Poster
Rep: Reputation: 0
After some testing I found it does actually start writing the tape at the end of the previous dump when you use the nst0 device, although it says "started with block 1". Once all the backups complete you need to do
mt -f /dev/nst0 rewind
 
  


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
Appending the files dina3e Programming 4 10-15-2008 07:03 PM
can anybody help me on taking backups using dump utility on RHEL 4 siri.siri143 Linux - Newbie 1 12-17-2007 09:12 AM
installing FreeBSD on Virtual Box error: "Cannot dump. No dump device defined" Valkyrie_of_valhalla *BSD 4 09-06-2007 04:02 AM
appending a file circuit_girl Programming 8 10-01-2006 11:00 AM
How to forcely dump the history of user commands to the admin dump file. mcp_achindra Linux - Security 1 03-19-2004 12:04 PM

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

All times are GMT -5. The time now is 07:38 PM.

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