Re: [BackupPC-users] Rsync on windows problem

2006-11-26 Thread Les Stott
Krsnendu dasa wrote:
 OK. I've uninstalled NX client, and Cygwin. Removed all instances of 
 cygwin1.dll, rsync etc.
 Removed all references to Cygwin, nx etc from registry.
 Rebooted.
 Copied contents of zip file to c:\rsyncd
 double clicked service.bat

 It still won't run as a service. :-(

Please post the contents of your rsyncd.conf file.

If you have enabled logging via the conf file, does it give any clues?

Did the service get installed properly? Can you see a service for rsyncd 
in the services applet of administrative tools? Does event viewer show 
any errors?

Regards,

Les

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Rsync on windows problem

2006-11-26 Thread Les Stott

Krsnendu dasa wrote:
On 27/11/06, *Les Stott* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Krsnendu dasa wrote:
 OK. I've uninstalled NX client, and Cygwin. Removed all instances of
 cygwin1.dll, rsync etc.
 Removed all references to Cygwin, nx etc from registry.
 Rebooted.
 Copied contents of zip file to c:\rsyncd
 double clicked service.bat

 It still won't run as a service. :-(

Please post the contents of your rsyncd.conf file.


Here are the contents of my rsyncd.conf file

#
# A sample rsyncd.conf file usable with BackupPC. This file does not
# completely document all of the settings for rsyncd.conf - see the
# man page that comes with the rsync ditribution for a comprehensive
# overview off all available settings.
#

#
# Allow rsync to change the root directory to the module location
# upon connection of a client. This is disabled for Win32 as we do
# not provide a full Cygwin environment.
#
# Warning: with a setting of false, absolute symlinks will be
# stripped of their leading /.  See use chroot in the rsyncd.conf
# man page.  This is relevant for machines that support symlinks
# (WinXX machines do not).
#
use chroot = false

#
# Limit the simultaneous rsync connections to 4. Changing
# this to '1' should be sufficient for BackupPC.
#
max connections = 1

#
# Uncomment this line and change the path if
# you would like to log rsync messages.
#
 log file = c:/rsyncd/rsyncd.log

#
# The location of the rsync process ID file
#
pid file = c:/rsyncd/rsyncd.pid

#
# The locations of the rsync lock file
#
lock file = c:/rsyncd/rsyncd.lock

#
# This is where we define the rsyncd modules. Add as many directories or
# files are you wish.  To backup this module using BackupPC, set
# $Conf{RsyncShareName} to docs in this client's config.pl.
#
#[docs]
#
# Exact DOS style path to the file or directory to be rsync accessible
#
 #   path = c:/Documents and Settings

#
# A short description of the module. This is what is printed when
# using rsync to browse the server for what modules are available.
#
#comment = Documents and Settings

#
# Does rsyncd ensure that the secrets file is read only by the
# user running the process? If this is false then no check is
# performed (useful for Win32 systems). However, you can change
# this to true and make the secrets file READ ONLY by the user
# running the rysncd process. If running from the command line
# or upon login, this should be the user who is logged in. If
# running as a Win32 service, then the SYSTEM account should be
# the only account that can read the secrets file.
#
#strict modes = false

#
# What user(s) have access to this module. The user(s) must be
# defined in the secrets file. A comma or space separated list.
#
# Example:
#   auth users = backup, root, larry
#   auth users = backup root larry
#
#auth users = backup

#
# The location of the secrets file. Permissions must be READ ONLY
# for the account running the rsyncd process unless
# strict modes = false is set above.
#
#secrets file = c:/rsyncd/rsyncd.secrets

#
# What hosts are allowed access to this module? By default, all
# hosts are allowed access. If you wish to further strengthen
# the security of your setup, uncomment and replace with the IP
# address your BackupPC server. This is a flexible setting and
# can be one of:
#
#   a dotted decimal IP address: 172.16.0.17 http://172.16.0.17
#   a address/mask in the form  a.b.c.d/n: 172.16.0.0/24 
http://172.16.0.0/24
#   an address/mask in the form ipaddr/maskaddr: 
172.16.0.0/255.255.255.0 http://172.16.0.0/255.255.255.0

#   a hostname: backupserver
#   a hostname pattern using wildcards: backup*
#
# hosts allow = 172.16.0.17 http://172.16.0.17

#
# Only allow clients to READ from the server. This prevents uploads
# from remote machines. If you wish to allow uploads, change this too
# true.
#
# WARNING: Setting this to true means that BackupPC restores via
# rsyncd will fail. You most likely want to set this to false.
#
#read only = false

#
# Don't list this module if a client asks (provides another modest
# layer of security since an attacker also has to guess the module
# name - you could make it obscure if you want - but remember the
# module name is sent in plain text so it can be sniffed).
#
#list = false

#
# Example of how to share the entire C: drive.  For BackupPC cDrive
# is the share name (ie: the value of $Conf{RsyncShareName}).
#
[test]
path = H:\testbackup
comment = Test Directory
   
#path = c:/Documents and Settings

#comment = Documents and Settings
auth users = backup
secrets file = c:/rsyncd/rsyncd.secrets
# hosts allow = 172.16.0.17 http://172.16.0.17
strict modes = false
read only = false

Re: [BackupPC-users] Rsync on windows problem

2006-11-26 Thread Les Stott
Krsnendu dasa wrote:
 I tried the changes suggested but it still won't start as a service.
 I even copied the sample rsync.conf and rsync.secrets files in place 
 of the files I had and it still doesn't want to start as a service.

 NEW DEVELOPMENT
 I can run rsync as a daemon by typing the following at the command line:

 C:\Documents and Settings\Krsnendursync --daemon -v --no-detach 
 --config=c:/rsy
 ncd/rsyncd.conf

 Then from backuppc computer I can run
 rsync -av [EMAIL PROTECTED]::test .
 and it works.. It copies the file in c:\test to the directory on the 
 backuppc computer.
 The problem is getting rsync to run as a windows service. It seems to 
 run fine on its own. So I guess the rsyncd.conf file is not the problem.

see if you can modify the service entry to use the command line above, 
should be do-able.

You may have to use dos commands and net commands to do it. Not sure why 
you would need to, something is screwy with your setup.

It may be likely that the service originally installed stayed behind. 
Check its advanced properties to make sure its parameters are correct. 
If possible, remove it and re-add it using the service.bat.

Regards,

Les



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] Rsync on windows problem

2006-11-25 Thread Krsnendu dasa

I install rsync using the msi installer.
When I try to run the service from windows Administrative tools/services it
gives me the message.
The rsyncd service on Local Computer started and then stopped. Some
services stop automatically if they have no work for example the Performance
logs and Alerts service.

When I try to start it from the command line I get the error:

C:\Documents and Settings\Krsnenducygrunsrv -S rsyncd
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.

What's happening?

It used to work fine previously but because of conflicts with cygwin1.dll in
NX Client I stopped it and only recently tried reinstalling it.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Rsync on windows problem

2006-11-25 Thread Vincent Fleuranceau
2006/11/25, Krsnendu dasa [EMAIL PROTECTED]:
 I install rsync using the msi installer.

(...)

 It used to work fine previously but because of conflicts with cygwin1.dll in
 NX Client I stopped it and only recently tried reinstalling it.

I've had similar problems in the past: verify that you only have *one*
copy of the 'cygwin1.dll' file on your sysem. If you find several
occurrences, keep the newest one (latest version) and delete (or
rename) the other ones. Place it somewhere in the PATH, so that every
program can use it.

-- Vincent

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Rsync on windows problem

2006-11-25 Thread Les Stott
Krsnendu dasa wrote:
 I install rsync using the msi installer.
 When I try to run the service from windows Administrative 
 tools/services it gives me the message.
 The rsyncd service on Local Computer started and then stopped. Some 
 services stop automatically if they have no work for example the 
 Performance logs and Alerts service.

 When I try to start it from the command line I get the error:

 C:\Documents and Settings\Krsnenducygrunsrv -S rsyncd
 cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 
 1062:
 The service has not been started.

 What's happening?

 It used to work fine previously but because of conflicts with 
 cygwin1.dll in NX Client I stopped it and only recently tried 
 reinstalling it.
That last line says it all!!

Firstly, i suggest using the cygwin-rsyncd package from the BackupPC 
site itself. It is as simple as extracting a zip file to c:\rsyncd and 
then running a batch file to install it as a service.

http://sourceforge.net/project/showfiles.php?group_id=34854

Second, make sure only 1 cygwin1.dll is in your path.

Third.

I had issues too with this sort of thing. Except mine was related to 
another project call usbpc. Basically that was a site on the internet 
which gave you a KDE desktop for free, but you would need to install 
some client software (which included a version of the NX Client, which 
uses cygwin).

After i realised it was not what i wanted i uninstalled it and thought 
everything would be ok. Then all hell broke loose. My Cygwin X server 
would not run, erroring out. But not all the time. To cut a long story 
short the problem was

The NX Client from usbpc was installed to an external drive. It modified 
the registry entires in the cygwin folders and changed the location of 
the tmp directory to the external drive. When i had the external drive 
plugged in, X would work. When i didn't X would fail. Once i removed the 
registry entry which was overwriting /tmp in cygwin everything was fine.

My guess is that you still have some left over registry entries from the 
NX client install which are causing the crash.

so, best bet would be to remove cygwin, delete all references left 
behind in the registry for cygwin and NX Client (removing and 
reinstalling cygwin is not enough) and then reinstall.


Hope that helps,

Regards,

Les

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Rsync on windows problem

2006-11-25 Thread Les Stott

Krsnendu dasa wrote:

Thanks for the tips.

On 26/11/06, *Les Stott*  [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:



My guess is that you still have some left over registry entries
from the
NX client install which are causing the crash.

so, best bet would be to remove cygwin, delete all references left
behind in the registry for cygwin and NX Client (removing and
reinstalling cygwin is not enough) and then reinstall.


How do I delete the registry references?

use regedit, and manually search for the entries.

Les
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Rsync on windows problem

2006-11-25 Thread Krsnendu dasa

OK. I've uninstalled NX client, and Cygwin. Removed all instances of
cygwin1.dll, rsync etc.
Removed all references to Cygwin, nx etc from registry.
Rebooted.
Copied contents of zip file to c:\rsyncd
double clicked service.bat

It still won't run as a service. :-(

On 26/11/06, Les Stott [EMAIL PROTECTED] wrote:


 Krsnendu dasa wrote:

Thanks for the tips.

On 26/11/06, Les Stott  [EMAIL PROTECTED] wrote:


 My guess is that you still have some left over registry entries from the
 NX client install which are causing the crash.

 so, best bet would be to remove cygwin, delete all references left
 behind in the registry for cygwin and NX Client (removing and
 reinstalling cygwin is not enough) and then reinstall.


How do I delete the registry references?

use regedit, and manually search for the entries.

Les

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/