LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-09-2004, 12:33 PM   #1
drako12
LQ Newbie
 
Registered: Jan 2004
Posts: 8

Rep: Reputation: 0
Can anyone help me with a DAT tape?


im trying to make a backup in a DAT tape, the problem is , i cant append the files in the tape..



thats what i do for the backup

mt -f /dev/st0 rewind
mt -f /dev/st0 eom OR mt -f /dev/st0 fsf1 OR mt -f /dev/st0 eof (these commands dont seem to work)

find / -ctime -1 > /home/backup/files.txt
tar -cpPmv -T /home/backup/files.txt -f /dev/st0



can anyone please help me with a new command?
 
Old 03-09-2004, 03:27 PM   #2
drako12
LQ Newbie
 
Registered: Jan 2004
Posts: 8

Original Poster
Rep: Reputation: 0
please please please someone help me =/
 
Old 03-09-2004, 04:45 PM   #3
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
//

Last edited by homey; 03-10-2004 at 07:31 PM.
 
Old 03-10-2004, 12:01 PM   #4
drako12
LQ Newbie
 
Registered: Jan 2004
Posts: 8

Original Poster
Rep: Reputation: 0
the backup is going fine, i used the -f in the end of the command as you can see..



my problem is when i make the backup AGAIN, it runs over the last backup, not after it..
 
Old 03-10-2004, 03:23 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,360

Rep: Reputation: 6149Reputation: 6149Reputation: 6149Reputation: 6149Reputation: 6149Reputation: 6149Reputation: 6149Reputation: 6149Reputation: 6149Reputation: 6149Reputation: 6149
Device /dev/st0 rewinds upon completion of command. So after you are taring to tape it will rewind and overwrite with the next tar.

Device /dev/nst0 does not rewind the tape upon completion of the command.

Quote:
mt -f /dev/st0 rewind
mt -f /dev/nst0 <rest of your command>

find / -ctime -1 > /home/backup/files.txt
tar -cpPmv -T /home/backup/files.txt -f /dev/st0

Last edited by michaelk; 03-10-2004 at 03:25 PM.
 
Old 03-11-2004, 01:07 PM   #6
drako12
LQ Newbie
 
Registered: Jan 2004
Posts: 8

Original Poster
Rep: Reputation: 0
i though the only difference between st0 and nst0 was that st0 was an IDE tape and nst0 was SCSI...
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DAT Tape Drive device name suab0871 Linux - Newbie 1 10-24-2005 11:54 AM
DAT tape drive command tchoub Linux - Hardware 0 10-20-2004 10:56 AM
File Listing of a DAT Tape solex Linux - General 7 08-31-2004 01:00 PM
DAT Tape drive sanw2k Linux - Networking 4 10-11-2003 12:16 AM
DAT tape pk21 Linux - Newbie 0 06-14-2002 07:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:52 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