Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Need help with TAR backups
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
biznatch
Apprentice
Apprentice


Joined: 23 Jul 2004
Posts: 220
Location: Wichita, KS

PostPosted: Sun Sep 26, 2004 6:58 pm    Post subject: [SOLVED] Need help with TAR backups Reply with quote

How do you add multiple tar archives to a single tape without overwriting?

I have several servers that I am going to backup with tar over SSH to a single backup server. The archives are very large and I would like to be able to write them directly to the tape rather than to the disk first.

Anyway, I just need to know have to create a specific archive for each server on a single tape. Please help. Thanks!
_________________
While your waiting for your post to be answered, please help with unanswered posts.


Last edited by biznatch on Fri Oct 01, 2004 2:26 am; edited 1 time in total
Back to top
View user's profile Send private message
uxbod
Guru
Guru


Joined: 30 Dec 2002
Posts: 474
Location: UK

PostPosted: Sun Sep 26, 2004 8:43 pm    Post subject: Reply with quote

If you specify the non-rewind device (/dev/rmt/?mn) then tar will append. When wanting to restore, certainly under HP-UX, you can use the command 'mt' which will allow you to fast-forward (fsf) to the next header.
Back to top
View user's profile Send private message
biznatch
Apprentice
Apprentice


Joined: 23 Jul 2004
Posts: 220
Location: Wichita, KS

PostPosted: Mon Sep 27, 2004 8:30 pm    Post subject: Reply with quote

I cant use fsf or st0m at all on my system.

st0m:
Code:
# ls -l /dev/st0*
lr-xr-xr-x  1 root root 31 Sep 24 10:34 /dev/st0 -> scsi/host0/bus0/target3/lun0/mt
lr-xr-xr-x  1 root root 32 Sep 24 10:34 /dev/st0a -> scsi/host0/bus0/target3/lun0/mta
lr-xr-xr-x  1 root root 32 Sep 24 10:34 /dev/st0l -> scsi/host0/bus0/target3/lun0/mtl
lr-xr-xr-x  1 root root 32 Sep 24 10:34 /dev/st0m -> scsi/host0/bus0/target3/lun0/mtm


Code:
tar: /dev/st0m: Cannot write: No such device or address


fsf:
Code:
# mt -f /dev/st0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x40 (DLT1 40 GB, or Ultrium).
Soft error count since last status=0
General status bits on (41010000):
 BOT ONLINE IM_REP_EN

# mt -f /dev/st0 fsf 1

# mt -f /dev/st0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x40 (DLT1 40 GB, or Ultrium).
Soft error count since last status=0
General status bits on (41010000):
 BOT ONLINE IM_REP_EN


Any ideas?
_________________
While your waiting for your post to be answered, please help with unanswered posts.
Back to top
View user's profile Send private message
biznatch
Apprentice
Apprentice


Joined: 23 Jul 2004
Posts: 220
Location: Wichita, KS

PostPosted: Mon Sep 27, 2004 8:39 pm    Post subject: Reply with quote

SOLVED

It's /dev/nst0
_________________
While your waiting for your post to be answered, please help with unanswered posts.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum