Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1265136
  • 博文数量: 1211
  • 博客积分: 10010
  • 博客等级: 上将
  • 技术积分: 14340
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-09 11:20
文章分类

全部博文(1211)

文章存档

2011年(1)

2008年(1210)

我的朋友

分类: 服务器与存储

2008-06-09 19:00:53

四. 跨操作系统进行备份
1. 把Linux服务器上的数据资料备份到windows 95/98机器上 假定一台windows机器jephe有一完全读写共享目录 data ,且密码为 secret ,现希望把Linux上的 文件备份到这个共享目录下,则先把这个共享可写目录mount到Linux下,再做普通的cp操作
 
附:在Linux上对Novell服务器上的数据进行备份:() 
NetWare And Linux
 
Making your Linux server talk to NetWare servers and printers 
 
As almost every office-LAN has a NetWare server, your desktop client must be able to talk
 to NetWare. This article tells you how a Linux box can access files on a Novell server 
and print to a Novell print queue.
 
Linux, by default, uses the IP network protocol for network communication. However, Novell 
NetWare uses the IPX network protocol. As the Linux kernel has a completely new network 
implementation compared to other operating systems like Unix, it supports a range of 
non-TCP/IP protocols including the IPX protocol. Kernels 2.x onwards have built-in IPX 
support. The Red Hat Linux distributed on our CD-ROM has it too. The Linux kernel supports
 the IPX protocol only. It does not, yet, support protocols such as IPX/RIP, SAP, or NCP.
 
The first step is to configure your IPX interfaces. 
 
Login as root 
Type ipx_configure--auto_primary= on --auto_inter> 
Wait for a minute and type cat /proc/net/ipx_interface. You should see something like: 
Network Node_Address Primary Device Frame_Type
000000E1 00A0C925164A Yes eth0 802.2 
 
     4.Type slist. You should see a list of the NetWare servers on your LAN. 
 
Known NetWare File Servers Network Node Address
D74_SERVER 00000D74 00000000001
 
If you don't, wait for a few minutes and retry. If the slist command displays a message 
like: ncp_connect: Invalid argument, then your kernel probably does not support IPX. 
Check that you have actually booted off the appropriate kernel. When you boot you should
 see messages about IPX and ncpfs in system startup messages. If the slist command does
 not list all of your fileservers, then you may need to use the manual network configuration 
method. Type cat /proc/net/ipx_interface. You should see something like:
 
At this point, your Linux box is setup for IPX networking. Check if your kernel has 
support for NetWare NCP file system. The default Red Hat kernel has NCP file system 
support. You simply have to load the ncpfs module /usr/sbin /lib/modules/2.0.32/fs/ncpfs.0. 
You can also add the line to your local file to load it automatically at the boot time.
 
Once that is done,
 
Login as root (only root can mount NetWare volumes). 
Type mkdir/netware to create a directory for mounting the NetWare volumes. 
Type ncpmount -S D74_SERVER -U user10 /netware. You will be prompted for a password for user10. 
At this point your server is mounted on /netware. The volumes are sub-directories under
 /netware. So the SYS volume would be /netware/sys and the DATA volume would be /netware/data. 
If you only want to mount a single volume, you can use ncpmount -S D74_SERVER -V sys -U user10 
/netware. This will mount only the SYS volume to /netware. 
When you finish using the Net-Ware volume, you can unmount usingncpumount/netware. 
Tip: You don't need to manually unmount NetWare volumes when you shutdown. 
When you want to share the mounted NetWare volume among other Linux users, you need to 
understand file permissions. The NetWare file system doesn't support user IDs and group 
IDs for directories. So all files and directories on the mounted directory have the 
permissions as the directory where it was mounted. For example, if you type ls -ld/netware, 
drwxrwxr-x 1 root root 512 Nov 24 1960 /netware is what you get.
 
So, all the NetWare files will have the above file permissions. 
 
If you want non-root users to mount NetWare volumes, ncpmount command must be Set Userid Root, 
so you would need to type chmod 4755 ncpmount
 
Simplifying mounting of volumes
 
There is another way of configuring NetWare mounts-by creating a .nwclient file in your home 
directory. This file contains details of temporary or user specific NetWare mounts that would 
be performed regularly. It allows you to store the details of mounts so that you can recreate 
them without specifying all details each time. Its format is quite straightforward:
阅读(462) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~