BackupPC-users

Re: [BackupPC-users] rsync on Windows 8?

2013-08-01 15:15:59
Subject: Re: [BackupPC-users] rsync on Windows 8?
From: Ray Frush <ray.frush AT avagotech DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Thu, 1 Aug 2013 13:13:51 -0600

The BackupPC cygwin-rsyncd / 3.0.9.0 that I helped to contribute is only missing the  cygintl-8.dll file.  I don't have Windows 8 to test with, but without the file we've had no issues on Windows 7.  
  
cygwin-rsynd (3.0.9.0) also has the same behavior with regard to requiring /cygwin/c/<path> in the config file.

Mark-

Have you tried the cygwin-rsyncd package from http://sourceforge.net/projects/backuppc/files/cygwin-rsyncd/3.0.9.0 ?   It would be good to know if the package needs to be tweaked to support Windows 8.


On Thu, Aug 1, 2013 at 12:54 PM, Mark Campbell <mcampbell AT emediatrade DOT com> wrote:

So I figured out the problem!  Apparently, by adding in the new version/additional .dlls, "C:/<path>" is no longer recognized in rsyncd.conf.  It needs to be /cygwin/c/<path>.  So, bearing that in mind, the list of files below, which were pulled from cygwin as of yesterday, are confirmed to work on Windows 8, Windows 7, and Windows XP (I would assume that the server variants would work as well too):

·         cygiconv-2.dll

·         cygintl-8.dll

·         cygpopt-0.dll

·         cygrunsrv.exe

·         cygwin1.dll

·         rsync.exe

·         rsyncd.conf

 

Thanks,

 

--Mark

 

From: Craig Barratt [mailto:cbarratt AT users.sourceforge DOT net]
Sent: Thursday, August 01, 2013 1:01 AM


To: General list for user discussion, questions and support
Subject: Re: [BackupPC-users] rsync on Windows 8?

 

Sorry I can't directly help (since I don't have a Win8 machine).  But if someone can figure out the right set of cygwin files and the right recipe - ideally one that works across Win8, Win7 etc - then I would be happy to update the recently released cygwin-rsyncd package (which was helpfully provided by Ray Frush).

 

Craig

 

On Wed, Jul 31, 2013 at 7:14 AM, Mark Campbell <mcampbell AT emediatrade DOT com> wrote:

Apparently, my issue is not as solved as hoped.  The service does start up fine now, and doing an rsync --list-only to another machine lists the contents of the module on the remote machine just fine, but when trying to perform a backup of this machine with BackupPC (and even when trying to do an rsync --list-only from another machine to it), it generates the error:

        [root@emtbackup2 /]# rsync --list-only rsync://backupadmin@win8testvm/users
        Password:
        @ERROR: chdir failed
        rsync error: error starting client-server protocol (code 5) at main.c(1503) [receiver=3.0.6]

Online research suggests that this may be a permissions issue, but I've tried running the service both as the "Local System Account", and as "Administrator", with no variations on the error.  Any suggestions on this?

Thanks,

--Mark



-----Original Message-----
From: Mark Campbell [mailto:mcampbell AT emediatrade DOT com]
Sent: Tuesday, July 30, 2013 1:59 PM
To: General list for user discussion, questions and support
Subject: Re: [BackupPC-users] rsync on Windows 8?

Andrew,

I did fail to mention that once I decided to grab additional .dlls from the install, that I copied over the corresponding updates to the original files mentioned, to no avail.

But your idea inspired me to try running the rsync that I installed in the rsyncd directory in an administrator command line, and lo and behold, it gave me an error message with a new missing .dll to get!  Once I got that one and dropped it in the rsyncd folder, I tried running it on the command line again, and it gave me the rsync help menu.  Once that worked, I tried starting the service again, and it succeeded!  Woo hoo!  :)

For the record (for anyone else that might be doing the same that I am doing), these are all the files required by rsync to run as a service in windows 8:
-cygiconv-2.dll
-cygintl-8.dll
-cygpopt-0.dll
-cygrunsrv.exe
-cygwin1.dll
-rsync.exe
-rsyncd.conf



Thanks,

--Mark


-----Original Message-----
From: Andrew Schulman [mailto:andrex AT alumni.utexas DOT net]
Sent: Tuesday, July 30, 2013 1:17 PM
To: backuppc-users AT lists.sourceforge DOT net
Subject: Re: [BackupPC-users] rsync on Windows 8?

> So I've been successfully backing up Windows XP, Vista & 7 machines to my BackupPC instance using Cygwin1.dll, Cygrunsrv.exe, & rsync.exe as a windows service.  Then came a Windows 8 laptop to my work.  I tried to install rsync on it like I've done with all of the other Windows flavors, but it failed.  The files are located where they should be, and the service gets registered, but when it tries to start the service, it fails.  Event log throws up entries like "rsyncd: PID 3092: `rsyncd' service stopped, exit status: 127".  Cygwin itself gave some slightly more verbose errors in C:\var\log\rsyncd.log:
>
> /rsyncd/rsync.exe: error while loading shared libraries:
> cygpopt-0.dll: cannot open shared object file:  No such file or
> directory
> /rsyncd/rsync.exe: error while loading shared libraries:
> cygiconv-2.dll: cannot open shared object file:  No such file or
> directory
>
> Armed with both of these log entries, I downloaded the full blown cygwin, extracted it, and found the appropriate .dlls and copied them to my rsync directory.  Then it gave me this error:
>
> /rsyncd/rsync.exe: error while loading shared libraries:  ?: cannot
> open shared object file:  No such file or directory
>
> What the deuce?  I have no idea how to troubleshoot this one.  Anyone have any suggestions on how to get rsync working on Windows 8?

Could it be that your rsyncd.exe was compiled against different versions of those libraries?  Since you've already created a full Cygwin installation, I suggest starting by trying run the rsyncd that's in that.  If that works, then you can go back to trying to extract just the pieces you need into a separate directory (or not).


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

 


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/




--
Ray Frush               "Either you are part of the solution
T:970.288.6223               or part of the precipitate."
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
 Avago Technologies, Inc. | Technical Computing | IT Engineer
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/