Click to See Complete Forum and Search --> : Can anyone help


Henrycoffin
01-05-2001, 05:00 AM
I have two machines on different subnets of the same network.

i.e

machine 1: 196.187.10.5
machine 2: 196.187.30.5

I would like to set up a cron job to copy the contents of a directory on machine 1 to the corresponding directory on machine 2 overwriting any existing files.

I have set up the directory as a share using samba but am not sure how to go about mounting this share from the other machine and copying the files across.

Any help would be greatly appreciated.

Thanks Guys

syn
01-05-2001, 07:46 AM
try smbclient --help for help on switches, or an easier way might be to use nfs? cuz you can mount it just like a floppy or cdrom and it wont know the difference, and you can set up fstab to mount it at boot time, at least thats what I did. Or the second machine is probably a windows machine isnt it?

Henrycoffin
01-05-2001, 08:04 AM
Thanks syn

No the other machine is another identical linux machine both are running redhat 6.1

Sorry to be so dumb but could you please give some more detail of nfs.

Cheers

A_Lawn_GNOME
01-05-2001, 08:49 AM
NFS is Linux's version of file sharing. You specify a directory to export and who can to export it to.

You can find some docs about it at linuxdoc.org and I would try there first. I am not familiar enough with it to explain.