External Database Maintenance
319
n
ov
do
cx (e
n)
16
Ap
ril 20
10
35.1.3 Backing up the External Sybase Database Running on a
Linux Server to a Network Location on a Remote Linux Machine
To back up the external Sybase database that is installed and running on a Linux server to a network
location on a Linux machine, you need a local machine and a remote machine. The local machine is
a Linux server with the external Sybase database installed. The remote machine is a Linux machine
that has the network location to which you want to back up the database.
You can back up the database on a Linux machine by using any Linux share such as Samba share or
an NFS share.
To back up the external Sybase database that is installed and running on a Linux server to a network
location on a Linux machine by using Samba share:
1
Create a Samba share on the remote machine:
1a
Create a user by entering the
useradd
user_name
command at the command prompt.
1b
Log in to the remote machine with the username you created in
Step 1a
, and set the
password by using the
passwd
specify_the_password
command.
1c
Create a directory to save the database backup.
For example, create a directory with the name
backup
.
1d
Open the Samba server settings by running the
yast2 samba-server
command.
1e
Click the
Shares
tab, then click
Add
to specify the share name and the path to the backup
directory you created in
Step 1c
.
For example, specify the share name as
dbbackup
.
1f
Select the
dbbackup
share, click
Edit
, then add the following attributes:
create mask = 0640
force user =
user_name_created_in_
Step 1a
guest ok = yes
public = yes
wide links = no
writeable = yes
2
Create a directory on the local machine.
For example, create a directory with the name
zenworks_dbbackup
in
/root.
3
Mount the Samba share on the
zenworks_dbbackup
directory on the local machine by
entering the following command at the command prompt:
mount -t smbfs //
IP_address of the remote_machine
/
share_name
-o
username=
user_name_specified_in_Step1a
,password=
password_
specified_in_Step_1b
local_directory_name_with_complete_path_created_in_Step2
For example:
mount -t smbfs //
IP_address of the remote_machine
/dbbackup -o
username=
user_name_specified_in_Step1a
,password=
password_
specified_in_Step_1b
/root/zenworks_dbbackup