Sponsored Content
Top Forums UNIX for Advanced & Expert Users Space free on tape /delete a single file on tape Post 302100603 by Corona688 on Wednesday 20th of December 2006 11:03:15 PM
Old 12-21-2006
Because you're not telling tar to append. You're overwriting the tape every time, starting at the beginning of the tape and writing towards the end. It's like overwriting the same file every time.

You're archiving with something like 'tar -cf /dev/rmt/0', yes? That creates a new archive every time, overwriting the parts you've already saved to. 'tar -rf /dev/rmt/0' will append to an existing archive. See 'man tar' for details.

here is a google groups thread describing the process.
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Tape space used not correct

version: SCO 5.0.5 There is a file in /usr/local/bin called ' baktape ', I'm unsure whether this is a standard unix file or one created by someone who used to manage this server? Anyway, it backs up what is specified to be backed up to tape and then prints off a report. Problem: What comes... (2 Replies)
Discussion started by: system77
2 Replies

2. Solaris

How to recover a single file from tape

Hi I have taken a backup using /usr/sbin/ufsdump -0uf /dev/rmt/0n I want to recover one file from it but finding it hard nut to crack. Can you please give me a simple way of recovering it? Thanks (2 Replies)
Discussion started by: krishan
2 Replies

3. UNIX for Dummies Questions & Answers

Mounting DLT tape and to backup file to tape

Hi there: I'm new here Can anyone help me: I have DS15 Alpha server : Unix 5.1B Now i need to connect a DLVT VS80 1U Rackmount Tape Drive unit. What is the exact comman to mount the DLTape IV?? How do i make backuo @ copy file to the tape? Thanx to all (0 Replies)
Discussion started by: ayzeayem
0 Replies

4. SCO

Tape Status shows 2 Hard errors and 5 Underruns on new tape

when I do a tape status /dev/rStp0 I get the following on a new tape and I have tried several: Status : ready beginning-of-tape soft errors : 0 hard errors: 2 underruns: 5 My BackupEdge has stopped backing up my system because it asks for a new volume yet my total system data is under 20... (5 Replies)
Discussion started by: psytropic
5 Replies

5. AIX

I could not delete the tape in AIX !

I could not delete the tape in AIX This is the steps which i used .. but still it did not deleted .. ! server/root>lscfg -l rmt0 rmt0 U789D.001.DQD298Y-P1-C5-T2-L6-L0 Other SCSI Tape Drive server/root> server/root> server/root>lsdev -l rmt0 -F parent scsi3... (3 Replies)
Discussion started by: Mr.AIX
3 Replies

6. AIX

How to make a copy of a tape to another tape?

Hello, We need to make a copy of a backup tape, using the 2 tape recorders in IBM 3582 Tape Library We tried tu use "tcopy", it seems to work fine (no error messages) but we aren't sure if we can rely on it. my question is how to check if the copy succeded or not, but i also want to know... (3 Replies)
Discussion started by: fastlane3000
3 Replies

7. AIX

Ejecting tape on AIX & Some Tape commands

I am trying to use this command to eject the tape mt -f /dev/rmt/0 unload but it gives me error mt -f /dev/rmt/0 unload mt: 0511-575 unload is not a recognized subcommand. Usage: mt Subcommand Valid subcommands are: weof eof fsf bsf ... (5 Replies)
Discussion started by: filosophizer
5 Replies

8. Solaris

UNIX Checking Tape Space

Hello. My name is Alex and I am new to the UNIX environment. One of the things that I do on a daily basis is I perform backups to tape on a Sun Ultra 25. I use DAT72 tape. The tape that is currently in the tape drive has about five database backups within it already. I was just hoping... (19 Replies)
Discussion started by: daddy.torres
19 Replies

9. UNIX for Beginners Questions & Answers

How to copy a 2 Volume mksysb backup to a single tape?

Hi, I have an mksysb backup which consists of 2 Volume, how do I combine it into a single Volume or tape ? Appreciate it (1 Reply)
Discussion started by: AIXBlueCat
1 Replies
tar_append_file(3)						  C Library Calls						tar_append_file(3)

NAME
tar_append_file, tar_append_eof, tar_append_regfile - append data to tar archives SYNOPSIS
#include <libtar.h> int tar_append_file(TAR *t, char *realname, char *savename); int tar_append_regfile(TAR *t, char *realname); int tar_append_eof(TAR *t); VERSION
This man page documents version 1.2 of libtar. DESCRIPTION
The tar_append_file() function creates a tar file header block describing the file named by the realname argument, but with the encoded filename of savename. It then sets the current header associated with the TAR handle t to the newly created header block, and writes this block to the tar archive associated with t. If the file named by realname is a regular file (and is not encoded as a hard link), tar_append_file() will call tar_append_regfile() to append the contents of the file. The tar_append_regfile() function appends the contents of a regular file to the tar archive associated with t. Since this function is called by tar_append_file(), it should only be necessary for applications that construct and write the tar file header on their own. The tar_append_eof() function writes an EOF marker (two blocks of all zeros) to the tar file associated with t. RETURN VALUES
On successful completion, these functions will return 0. On failure, they will return -1 and set errno to an appropriate value. ERRORS
The tar_append_*() functions will fail if: EINVAL Less than T_BLOCKSIZE bytes were written to the tar archive. EINVAL Less than T_BLOCKSIZE bytes were read from the realname file. They may also fail if any of the following functions fail: lstat(), malloc(), open(), read(), th_write(), or the write function for the file type associated with the TAR handle t. SEE ALSO
read(2), open(2), lstat(2), th_write(3) University of Illinois Jan 2001 tar_append_file(3)
All times are GMT -4. The time now is 03:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy