Operating System - Linux
1829124 Members
2011 Online
109986 Solutions
New Discussion

Re: How do you use tar for n/w backup

 
SOLVED
Go to solution
sreekanthtm
Trusted Contributor

How do you use tar for n/w backup

what is the command to take backup using tar
Iam connected to the server using telnet

Tell me commands for both conditons

1. If the tape device is connected localy to the server
2. If the tape device is connected to another system on the same n/w
3 REPLIES 3
Alan_152
Honored Contributor
Solution

Re: How do you use tar for n/w backup

For #1, the syntax is "tar cvf /dev/tape-device /filesystem"

For #2, the tar syntax is the same, but you 1st have to rmount the remote tape drive.
Ivan Ferreira
Honored Contributor

Re: How do you use tar for n/w backup

I will suggest the use of "star" instead of tar. It's faster and more easy for remote backups.

With tar

Local backups:

Create
tar cvf /dev/st0 directory directory file ....

List
tar tvf /dev/st0

Extract

tar xvf /dev/st0

Remote backups

Create
tar cvf - | ssh remotehost dd of=/dev/st0

List
ssh remotehost dd if=/dev/st0 | tar tvf -

Extract

ssh remotehost dd if=/dev/st0 | tar xvf -


Using star

Local backups:

star -cv f=/dev/st0 directory directory files ...

Remote backups:

env RSH=/usr/bin/ssh star -cvM f=user@host.dominio:/dev/st0 directory directory files ...
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
sreekanthtm
Trusted Contributor

Re: How do you use tar for n/w backup

How can we mount remote tape device
Pls give Syntax

Rgds
Sreekanth