1822036 Members
3540 Online
109639 Solutions
New Discussion юеВ

Re: remote backup

 
SOLVED
Go to solution
Fadia Almarei
Super Advisor

remote backup

hi all

i want to ask if i have a tap drive on a devise and i want to make backup on a tape for another device in the network what the command to do that ,and please what is the command if i have solaris system and HP system

thanks
fadia.marei
17 REPLIES 17
Mark Grant
Honored Contributor

Re: remote backup

You can't write directly to a tape device on another machine. You used to be able to do this with RFS but Sun won that little battle with NFS :)

However, a simple way to achieve the same thing is to make all the data you want to backup available on the machine with the tape drive.

Expensive backup software like Data Protector achieves this by having an agent running on both machines and the one without the tape drive simply sends the data to the agent on the machine that has the tape drive.

The simple way, however, is to just NFS mount the file system from the machine without the drive to the other and then you can back it up as if the data was local.
Never preceed any demonstration with anything more predictive than "watch this"
Martin P.J. Zinser
Honored Contributor

Re: remote backup

Hi,

and if you want to get slightly more sophisticated without spending big bucks (or rather any) checkout Amanda.

http://www.amanda.org/

Greetings, Martin
Paul Cross_1
Respected Contributor

Re: remote backup

What happened to:

#dump -0fu host:/dev/rmt/0n

??
Thomas Bianco
Honored Contributor

Re: remote backup

you could do the old standby:

rexec "tar / -" > /dev/tape

above is symbolic, obviously, as i am too tired to think of the correct command line or device files.
There have been Innumerable people who have helped me. Of course, I've managed to piss most of them off.
Fadia Almarei
Super Advisor

Re: remote backup

in another way if i want to backup a Linux 9 system on a tape ,but the tape drive found in an HP or Solaris system what the way to do the backup

thanks
fadia.marei
Mark Grant
Honored Contributor

Re: remote backup

Put the filesystems you want to back up in /etc/exports on the linux box. Entries should look something like this

/home *(rw,no_root_squash)

THen type "exportfs -a"

On the HP/Solaris go

mount :/home /mnt

Then backup /mnt. Obviously adjust filesystem names to suit.

When you have finished, on the HP/solaris do

umount /mnt

And on the Linux box

exportfs -a -u

Ignore the error messages

Never preceed any demonstration with anything more predictive than "watch this"
Fadia Almarei
Super Advisor

Re: remote backup

what you mean with a " rw,no_root_squash) " and what is the linux box

fadia.marei
Fadia Almarei
Super Advisor

Re: remote backup

when i put exportfs ,it give me error message as the following
"exportfs: No 'sync' or 'async' option specified for export "*:/home".
Assuming default behaviour ('sync').
NOTE: this default has changed from previous versions"


what to do
fadia.marei
Mark Grant
Honored Contributor

Re: remote backup

I thought you wanted to backup a linux machine (Linux 9 you called it), so the linux box, is this machine.

The "no_root_squash" is to allow root access on the HP/Solaris machine, you don't need it but you do neet the barckets so it could look like this in /etc/exports

/home *()
Never preceed any demonstration with anything more predictive than "watch this"
Mark Grant
Honored Contributor

Re: remote backup

fadia,

Simplyfy it. Make it

/home *()

As mentioned in my previous post and then try "exportfs -a"

Never preceed any demonstration with anything more predictive than "watch this"
Fadia Almarei
Super Advisor

Re: remote backup

sorry again i have the same message as previous ,please give me more details
fadia.marei
Mark Grant
Honored Contributor

Re: remote backup

Don't worry about it. It should still work
Never preceed any demonstration with anything more predictive than "watch this"
Fadia Almarei
Super Advisor

Re: remote backup

i think that i really annoy you ,but i want to understant , when i mount my linux system and then want to backup when i write the tar it will be

tar -cvf /mnt/0m (what file system)

so what is the file system i will write ,sorry again,but i need your help


thanks mark
fadia.marei
Mark Grant
Honored Contributor

Re: remote backup

No need to apologise. These forums are provided to offer help. I am glad you are using the forums.

Firstly, if your /etc/exports is OK go to your HP/solaris machine and do the "mount :/home /mnt"

This will get /home from the linux machine and mount it on /mnt on your HP/Solaris machine but on the /mnt filesystem. So, if you "cd /mnt" on the HP/Solaris, you will, in effect, be in /home on the linux machine. Do "ls -l" if you don't believe me :)

So, form the HP/SOlaris box, you would "tar cvf /mnt"

You will then have a nice backup of /home from the linux machine.
Never preceed any demonstration with anything more predictive than "watch this"
Fadia Almarei
Super Advisor

Re: remote backup

if i want to backup another file system rather than /home what the difference in the mount point i have


fadia.marei
Mark Grant
Honored Contributor
Solution

Re: remote backup

You can put them where you like. Just create a directory on the HP/Solaris e.g /backup and then add your new filesystem in /etc/exports like you did with /home and then mount :/newfilesystem /backup from the HP/Solaris system. Now you will have two filesystems mounted from your linux machine. /home mounted on /mnt and /newfilesystem mounted on /backup.
Never preceed any demonstration with anything more predictive than "watch this"
Roberto Polli
Trusted Contributor

Re: remote backup

without using NFS you can do it with the tar distributed with linux (be sure to configure your /etc/pam.d/rsh|rexec to use rhosts authorization)

let
host1 the one with tape
host2 the one with files

host2:# tar cf[Bvp] host1:/path/to/tape /dir/to/bkup

It takes care to rsh to the remote host and then uses 'posix options' of tar

eg.: from linux host
tar cf host1:/dev/tape /home
backups tho /home dir on the /dev/tape placed on host1

This command works from linux hosts to almost every os, but won't work from system whom don't have gnu-tar.

Let Me Know if it works.
Peace,
Rob