tar command to backup

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rohitbasu77
    New Member
    • Feb 2008
    • 89

    tar command to backup

    Hi All,

    I use tar command to backup my /oracle directory

    tar -cvf /dev/rsa0 /oracle

    the tape is 40gb.
    Now the content in /oracle is big so backup is not going to hapen in that tape.
    i have 4 slot for tape rsa0, rsa1, rsa2, rsa3.

    i need a program that will shift the backup to tape rsa1, if rsa0 is full.

    can i do that with tar command.

    regards
    rohit
  • mac11
    Contributor
    • Apr 2007
    • 256

    #2
    Originally posted by rohitbasu77
    Hi All,

    I use tar command to backup my /oracle directory

    tar -cvf /dev/rsa0 /oracle

    the tape is 40gb.
    Now the content in /oracle is big so backup is not going to hapen in that tape.
    i have 4 slot for tape rsa0, rsa1, rsa2, rsa3.

    i need a program that will shift the backup to tape rsa1, if rsa0 is full.

    can i do that with tar command.

    regards
    rohit
    I've never used tar with tape backups so I can't give specific advice, but it was made for this sort of thing so I bet it can do what you want.

    Try looking at the following page (if you haven't already) http://www.gnu.org/software/tar/manual/html_chapter/Media.html#SEC1 45

    Comment

    • rohitbasu77
      New Member
      • Feb 2008
      • 89

      #3
      Originally posted by mac11
      I've never used tar with tape backups so I can't give specific advice, but it was made for this sort of thing so I bet it can do what you want.

      Try looking at the following page (if you haven't already) http://www.gnu.org/software/tar/manual/html_chapter/Media.html#SEC1 45

      Thanks Mac.

      I got it. let say i have a file system of 60 gb (/oracle).
      I have tape rsa0 and rsa1 both of 40 gb each.
      Then:

      $ tar --create --multi-volume --file=/dev/rsa0 --file=/dev/rsa1 /oracle
      or
      $ tar cMff /dev/rsa0 /dev/rsa1 /oracle

      It will not prompt you after the end of file reached in rsa0.
      After making a tar of almost more than 39 gb it will start the unfinished job in rsa1.

      regards
      rohit

      Comment

      Working...