Thread: tar
-
hello:
what i have is only a tape driver,
what i can do now is put some program to cron
and that program doing some hot backup ,
then i manually tar it to tape
tar cvf /dev/rmt/0n /backup-dir
since tape driver is pretty big compare to what i want to
backup, so each time before i manually tar it,
i need run
tar tvf /dev/rmt/0n several time to make sure it
goes to the end of tape, otherwise it may overwrite
previous copy.
is there anybody can give me a unix script to make
sure tape is going to the end, so i can put it to my cron
as well
-
Refer to the Backup and Recovery Handbook in the chapter that contains sample backup scripts. If modified, your script willlook something like:
-
alter ts ts_name begin backup;
tar...
alter ts ts_name end backup;
-
Please forgive me, I could not understand ur question.
tar -rv will append at the end of the tape always.
Then what is the problem.
Thanx
Ramesh.
______________________________
There is nothing Impossible.
Even Impossible says
I M POSSIBLE
-
As Ramesh pointed, you have to use "-r" option of the "tar" command rather than "-t".
ie, tar -rvf dadada..
-
correction,
"-r" rather than "-c"
use, "tar -rvf" not "tar -cvf", if you want to append.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|