Connecting Tech Pros Worldwide Help | Site Map

tar command to backup

Member
 
Join Date: Feb 2008
Posts: 88
#1: Apr 17 '08
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
Familiar Sight
 
Join Date: Apr 2007
Posts: 188
#2: Apr 17 '08

re: tar command to backup


Quote:

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#SEC145
Member
 
Join Date: Feb 2008
Posts: 88
#3: Apr 18 '08

re: tar command to backup


Quote:

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#SEC145


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
Reply