[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Copying files over samba



*- Jieyao wrote about "Copying files over samba"
| Hi,
| 
| I am thinking of doing something as follows...
| 
| I have a debian and a win95 connected over a network and samba is running.
| I am thinking of setting up something like a 'mutual backup'. That is, I want 
| some data files on the win95 to be backup to the debian and vice versa.
| 
| I was thinking of writing a perl script to do that but have no idea how to access 
| samba. A check at CPAN did not find any modules to access samba.
| 
| Is there any way to do this?
| 

I am no Perl programmer but if the Win95 shares are already mounted
using smbmount then they look like any other directory to the user level
apps. If they are not mounted you could just call smbmount to mount
them and then proceed.  Thus you would just use whatever copying, tar,
cpio, etc. you wanted to archive key files on each filesystem to the
other.  This could all be done from the linux side of course.


-- 
Brian 
---------------------------------------------------------------------
"Never criticize anybody until you have walked a mile in their shoes,  
 because by that time you will be a mile away and have their shoes." 
							   - unknown  

Mechanical Engineering                              servis@purdue.edu
Purdue University                   http://www.ecn.purdue.edu/~servis
---------------------------------------------------------------------


Reply to: