Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exportfs - to back up to other server

Status
Not open for further replies.

MichelleButler

IS-IT--Management
Apr 5, 2002
73
GB
I have set up a new server, but what I would like to do is have the old server running until I am finally satisfied that the new server is working okay. I have copied all the informix data across, 4gls etc and all seems okay. What I would like to do is set up a script that also backups the database and source files to the new server, I understand that this is possible with Exportfs, but I am not sure how this is works, could anybody advise the best possible methods.

Many thanks

Michelle
 
Hi

smitty nfs will help you to understand wath NFS Server and Client will do.
Your Backup Machine will be the Client.

You must export the Filesystem with the Owner of the Data in the Filesystems.
You can also export the Filesystem with root owner rights.
smitty will create an entry in /etc/exports like:
/performance -root=yourclientmachine
exportfs -a will export all FS in /etc/exports
on the Client Machine you can Mount the FS over smitty or like:
mount servername:/performance /mnt

DNS Name Resolution must running properly.
If you have Problems to mount check with showmount -e
What is your Backup-Solution ???????

Good Luck
 
Hi,

I have not understood what you want do:
copy old data to the new server in another location,
or see the old data from the new location, or other.

For database data the thing you have done is the best,
an I belive that it is not good to have two db (the old
and the new) on the new server.
For source you can make a backup of them

cd /mysource
find . |backup -ivfp /tmp/mysource.bck
then ftp them to orher server
then, if you need, restore them in the new
server (by restore command) when you need.

Returning to "exportfs", it is just a command
that you can use in the NFS environment.

NFS (Network File System) is a feature of Unix system
by which you can see (or copy, but it is not mandatory)
directories of a system, from another system, as it was
a directory of the second.

The system that shares 1 or more dirs is called "server"
and on it you have to do some operations(depending from
type of OS).

Other systems can "mount" this share on them, seeing it
under their mounting point: we call these client.

In AIX, the best method to do these things, is using smit.

0) on both systems be sure that the partner host name
is on the /etc/hosts ( if you use DNS or NIS to resolve
names, is better if you use however /etc/hosts and other
actions to privilege hosts file to translate address )

1) on the server, enter "smitty _nfs" and
"Add dir to export..."

2) in the client enter "smitty _nfs" and
create an network file system.
choice the server host and a local mount point.

When done, only from client, you can see files on the
server (vi,cat), copy them from server to client, or
copy new files from client to server.

Make attention to the permissions: to execute the above commands you have to be root, to use them you don't need.
The easy way is to have a common user-id in both system
(as fred or informix-admin, whit the same id, not just the name).

If, instead you need to be root that sees or writes files
on server, you have to add (in the server operation) the
name of the client in the field "host allow to root access".
or simply, if it is right for your environment, make a
chmod 777 on the dir in which you write-read from the client.

bye.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top