backup Linux to NT

I need to backup a Linux database and log file to an NT server machine daily, so that it can be archived to a tape (on the NT machine). I have used ftp but there is no way to tell if the file transfer was successful (or is there?).

Do you know a way where I can do a file transfer with some sort of status reporting? I'm thinking of maybe trying NFS

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Use Samba to export the filesystem to the NT server. Then when the backup runs it will backup the data directly off of the Linux machine.

Samba will export a standard windows share that NT will understand and be able to mount.

Also there are other methods of copying the files that will let you know if they worked however you then have the problem of making sure that the files was copied before it was backed up, using Samba will eliminate the problems.

Depending upon which distribution you are using there is a web interface that will allow you completely configure Samba for your needs. It's called swat. I can provide information on configuring swat if you can provide your distribution information and version number.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nchakerianAuthor Commented:
I am using Redhat 6.1. I installed samba using the RPM package. I can now see the share in NT but as yet I haven't been able to see Linux folders cause it's asking for a password. I need to setup user access. I'm just looking at the Redhat HOWTO on SMB now.

Thanks for the help so far ..

Don't waste your time. I'll send you explicite directions in an hour or two on further configuration of SAMBA with swat.

I just had typed in the complete answer and had netscape crash so I'll put it in later today.

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

nchakerianAuthor Commented:
Thanks 'them' what is 'swat' anyway, and what's it stand for ?
You know I don't know, I should know as tridge (the primary author  of SAMBA) told my once but I've since forgotten.

Anyway here is how to use it. When I say to edit a file use your favorite
text editor.

1) become root
2) cd /etc
3) Edit the inetd.conf file
4) find the line:

swat      stream  tcp     nowait.400      root /usr/sbin/swat swat

(note the above line is contained wholly on a single line). It may have a # in front of it. If it does remove the #, if the line is not there copy it exactly as I have it into the file. Save and exit the file.

5) edit the services file, find the line (usally the last line in the file):

swat              901/tcp                         # Add swat service used via inetd

(note the above line is contained wholly on a single line). If the line has a # in front of it remove the #, if the line does not exist add it exactly as above. Save and exit the file.

6) At a root promp type

# /etc/rc.d/init.d/inet stop <CR>
# /etc/rc.d/init.d/inet start <CR>

7) Start X running if it is not already and start netscape
8) go to the following URL: http://localhost:901

You will be presented with a password prompt enter root and the root password. (Only do this from the from the machine you are configuring because you are using the root password)

Now you will be at a menu prompt from which you can configure SAMBA. The first page is help files which explain the usage of SAMBA across the top there are 7 icons:

You are on the HOME page, click on GLOBALS. Here you can set the workgroup SAMBA will show up in, the machines netbios name, server string and other items. Most important is the Security options. If you network is using encrypted passwords on windows (Win 98 and Nt do by default, Win 95 does if you have added SP3 I think) make sure to set the encrypted passwords to yes. You can read the help files for the rest of the of this page. Commit the changes before leaving this page.

The Shares icon will let you share out sections of the filesystem as desired. Also commit changes before leaving this page.

If you selected encrypted passwords go to the status icon and restart both smbd and nmbd. Now go to the password Icon and using the server password Management area enter your user name and password, do this for each user on the box. SAMBA will make encrypted passwords when you do this.

At this point all should be well and you should be able to get a share mounted from windows.

Good Luck
swar - Samba Web Administration Tool, a tool to configure SAMBA via a web browser, its much easier then manually editing the SAMBA config files
nchakerianAuthor Commented:
I have setup the server using swat. But I can't setup the security properly.

Here is my setup:
NT4SP3 with 30 users on WIN95/98 machines (all WIN95 workstations are version B so authentication is encrypted (??)
Domain Name: AUSTRALIA
WINS server: YES
Redhat Linux 6.1

On the Linux box, I have one user called sybase, home directory /home/sybase. I want to make this directory a share called "sybase2000" that is accessible by a number of users (about 4).
How can I make this share available to these users, using their normal NT logins, so they can use network neihbourhood to read/write to this share?

I don't know weather to use security = user, server, domain etc. I

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.