DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: tar

  1. #1
    Join Date
    Jan 2000
    Location
    san jose
    Posts
    149
    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

  2. #2
    Join Date
    Apr 2000
    Location
    Baltimore, MD
    Posts
    759
    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;

  3. #3
    Join Date
    Mar 2001
    Posts
    45
    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

  4. #4
    Join Date
    Aug 2000
    Posts
    194
    As Ramesh pointed, you have to use "-r" option of the "tar" command rather than "-t".

    ie, tar -rvf dadada..

  5. #5
    Join Date
    Aug 2000
    Posts
    194
    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
  •  


Click Here to Expand Forum to Full Width