View previous topic :: View next topic |
Author |
Message |
biznatch Apprentice
Joined: 23 Jul 2004 Posts: 220 Location: Wichita, KS
|
Posted: Sun Sep 26, 2004 6:58 pm Post subject: [SOLVED] Need help with TAR backups |
|
|
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 |
|
|
uxbod Guru
Joined: 30 Dec 2002 Posts: 474 Location: UK
|
Posted: Sun Sep 26, 2004 8:43 pm Post subject: |
|
|
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 |
|
|
biznatch Apprentice
Joined: 23 Jul 2004 Posts: 220 Location: Wichita, KS
|
Posted: Mon Sep 27, 2004 8:30 pm Post subject: |
|
|
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 |
|
|
biznatch Apprentice
Joined: 23 Jul 2004 Posts: 220 Location: Wichita, KS
|
Posted: Mon Sep 27, 2004 8:39 pm Post subject: |
|
|
SOLVED
It's /dev/nst0 _________________ While your waiting for your post to be answered, please help with unanswered posts. |
|
Back to top |
|
|
|