Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-15-2009, 03:55 PM   #1
LQ Newbie
Registered: Nov 2008
Posts: 1

Rep: Reputation: 0
Multiple backups on tape using tar.

I am trying to use tar and mt to manage some of my backups to tape. Each month or so I want to remove the previous months Cold backup .tar files to one tape before deleting them. The problem is when I write any new files to the tape it overwrites the previous backed up files. Is there some trick to appending files into an existing backup or to designate seperate backups, with multiple files contained like January_2009.tar that have just the January backup files, and Feb, etc.
Old 10-15-2009, 06:30 PM   #2
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,396

Rep: Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395
Sounds like you need the fsf option to skip past the 1st archive to set the tape to add a 2nd archive.
See post #5

(Possibly eod/seod according to manpage.)
I'd get a test tape and just put a couple of small files on to see what works. Try to recover each file file separately. Lastly, post the technique when you've got it; I'm sure we can all learn from it.
Old 10-16-2009, 07:03 AM   #3
Senior Member
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,194

Rep: Reputation: 105Reputation: 105
Make sure you are using the non-rewinding version of the tape driver. So, if you are using /dev/st0, change that to /dev/nst0. Otherwise, the tape rewinds after it finishes an operation you have asked for. Your next operation then begins at the beginning again. With the non-rewinding version, it won't do that. Use mt status to confirm where you are before an operation.


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
Using TAR to write multiple sessions to the same tape WojtekO Linux - Software 10 04-23-2009 08:25 PM
Tape Backups and How can i find out the Name (label) of the tape in the drive?? helptonewbie Linux - Newbie 2 10-27-2008 07:20 AM
Using the Multiple tape option with TAR bassman Programming 0 07-08-2004 12:49 PM
tar or cpio - Which is better for tape backups? Br. Nicholas Linux - Software 2 07-02-2003 04:06 PM
trouble using dd for tape backups. Jason Foat Linux - Hardware 1 05-21-2002 02:03 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:27 PM.

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