[Samba] NT Backups

The Fresh Prince of Darkness ghstwrtr at evilgenius.net
Fri Mar 15 12:59:02 GMT 2002


Given that rsync, smbclient and smbmount are all kissin' cousins, this 
seems like a good place to post this question.  I'm building a linux 
backup server which will be archiving other linux and some NT servers.

The Linux boxes are being rsynced over ssh, so everything is happy 
there.  The NT servers were initially going to be smbmounted and 
rsynced, but this ended up hanging about 30% of the time on servers with 
large amounts of data.

The next idea was to use smbclient -T and pipe it to tar -x and straight 
into it's proper place.  I was going to use the Windows archive bit to 
ensure that only changed files are brought in every night.  This has the 
problem that deletions are not accounted for and thus the backups would 
swell uncontrolled.

I tried running n rsync daemon (Service) on the NT box, but rsync 
wouldn't run as anyone but user nobody (or whatever the windows 
equivalent is) so this made it impractical for user directories, and 
such.  This was several months back, so I don't know if that's been 
changed since.

I'm now considering writing a perl hack which would do a recursive 
smbclient ls on the share and compare it against the mirror archive. 
This seems like a very cumbersome way to do this.

Another alternative is Cygwin, but in order to maximize portability, I'd 
rather limit the amount of configuration necesary on the client side..

Has anyone had to do something similar with more success than I've had? 
  any pointers would be appreciated.

-Ron





More information about the samba mailing list