LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-15-2009, 04:55 PM   #1
KiddSS
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, 07:30 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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 http://www.linuxquestions.org/questi...nd-file-33514/
http://linux.die.net/man/1/mt

(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, 08:03 AM   #3
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,191

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.
 
  


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
Using TAR to write multiple sessions to the same tape WojtekO Linux - Software 10 04-23-2009 09: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 08:20 AM
Using the Multiple tape option with TAR bassman Programming 0 07-08-2004 01:49 PM
tar or cpio - Which is better for tape backups? Br. Nicholas Linux - Software 2 07-02-2003 05:06 PM
trouble using dd for tape backups. Jason Foat Linux - Hardware 1 05-21-2002 03:03 PM


All times are GMT -5. The time now is 10:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration