1832695 Members
3107 Online
110043 Solutions
New Discussion

Remote backup using tar

 
Amruth
Regular Advisor

Remote backup using tar


Hi,

We are having one d class server and one L-class server. D is working with 10.20 and L with 11.00. I am doing the full back up on D-class server using tar for each and every file systems. I have to take the backup of 8gb more and my dat drive is not functioning now.

My L-class is having a DDS-3 drive. Can i take a backup of my D-class system using the DDS-3 drive of L-class (remote backup) by the utility tar ? If possible please put the command ?

I am using the tar for backup. In this state i cannot use the fbackup and because i am at 90% of my job......

Any help is appreciated.
amruth
If i am doing the same way you are doing to me then what is the difference between us.
7 REPLIES 7
Thierry Poels_1
Honored Contributor

Re: Remote backup using tar

hi,

first edit/create your .rhost file on the other server, so that you have remote access.

tar cv . | remsh server2 dd of=/dev/rmt/0m bs=10k

good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Vincenzo Restuccia
Honored Contributor

Re: Remote backup using tar

In local:
#tar cvf backup.tar ./path/*
#compress backup.tar
#rcp -p hostname2:/path2/backup.tar.Z|remsh hostname2 -n "cd /path2;tar cv"
Amruth
Regular Advisor

Re: Remote backup using tar

hello Thierry ,

The server2 ,myou are specifying in the command is the server which is not having the backup device.( From your command it is sure but still asking.)

amruth
If i am doing the same way you are doing to me then what is the difference between us.
Thierry Poels_1
Honored Contributor

Re: Remote backup using tar

Ok
Server1 = server without tape drive
Server2 = server with tape drive, requires the .rhost file

execute on server1:
tar cv . | remsh server2 dd of=/dev/rmt/0m bs=10k
(customize directory to be copied, and tapedrive!)

good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Rajeev Tyagi
Valued Contributor

Re: Remote backup using tar

u can also use following

tar cvf server2:/dev/rmt/0m

You have to execute this on the server which is not having the tape drive.

Piotr Bronisz
Occasional Advisor

Re: Remote backup using tar

Hi,
the command
tar cvf server2:/dev/rmt/0m
does not work (it is possible for fbackup only)
You can do:
Server1 = server without tape drive
Server2 = server with tape drive, requires the .rhost file
on Server1:
tar cf - /catalog |remsh Server2 "cat >/dev/rmt/0m" OR
tar cf - -C /catalog . |remsh Server2 "cat >/dev/rmt/0m" on Server 2:
remsh Server1 tar cf - /catalog >/dev/rm/0m OR
remsh Server1 tar cf - -C /catalog . >/dev/rm/0m
(the second examples - the relative pathnames,
customize directory to be copied, and tapedrive!)
good luck,
Piotr
Tom Danzig
Honored Contributor

Re: Remote backup using tar

I've used the following in the past:

tar cvfb - 20 $bu_files | remsh dd of=/dev/rmt/0m obs=20b

Change /dev/rmt/0m if that is not the tape drive device file.