Thanks in advance for your help..
I have two RH7.1 webservers running Samba and Apache.
I want to keep both servers web content synchronised by running a script.
I intend to use samba to make the /var/ directory available, and have a script to a) mount the remote share, b) copy (and overwrite) the existing files and folders from the remote /var/ share to the local one
I do not know how to mount an smb share in *nix (normally we use win2k clients) and no experience in writing shell scripts - although I have some in java/perl
The main issue I need advice on is how to copy all the files and folders recursively (I have a notion it involves looping) - has anybody got any advice to get me started?
I really would appreciate help, I'm a fairly new to Linux, but I'm hopelessly hooked.
Regards
Tels
Mixed Linux/Win2000 Network Administrator
I have two RH7.1 webservers running Samba and Apache.
I want to keep both servers web content synchronised by running a script.
I intend to use samba to make the /var/ directory available, and have a script to a) mount the remote share, b) copy (and overwrite) the existing files and folders from the remote /var/ share to the local one
I do not know how to mount an smb share in *nix (normally we use win2k clients) and no experience in writing shell scripts - although I have some in java/perl
The main issue I need advice on is how to copy all the files and folders recursively (I have a notion it involves looping) - has anybody got any advice to get me started?
I really would appreciate help, I'm a fairly new to Linux, but I'm hopelessly hooked.
Regards
Tels
Mixed Linux/Win2000 Network Administrator