BackupPC-users

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

2013-08-01 13:49:11
Subject: Re: [BackupPC-users] rsync on Windows 8?
From: Kris Lou <klou AT themusiclink DOT net>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Thu, 1 Aug 2013 10:19:40 -0700
For what it's worth, Michael's solution (with a few minor tweaks to the vshadow.exe and a few others) works well on Windows 8x64.  It is relatively seamless, so no installed services, and runs on-demand via winexe calls from a pre-dump script.

-Kris



On Thu, Aug 1, 2013 at 5:10 AM, Jürgen Depicker <Jurgen.Depicker AT let DOT be> wrote:
Dear Mark,

It seems you didn't try DeltaCopy: there is nothing in the tray: I run it as a service just as you describe.
By default it extracts itself to C:\DeltaCopy and then, when running DeltaS.exe, you can have it installing itself as a service.
You can just as easily do as you describe in your mail: copy the DeltaCopy dir to the C$ share and register the service using the net rpc command. You can easily change access permissions on the DeltaCopy dir to make sure no regular user has access to it.  Anyhow, if you configure a password which all may know, a user executing DeltaS.exe can mess up your config only till the next time you push the files :).

I guess you should give it a try...

Grts, Juergen


-----Oorspronkelijk bericht-----
Van: Mark Campbell [mailto:mcampbell AT emediatrade DOT com]
Verzonden: donderdag 1 augustus 2013 13:49
Aan: General list for user discussion, questions and support
Onderwerp: Re: [BackupPC-users] rsync on Windows 8?

The primary reason I have not gone the route of other programs such as deltacopy, is that these windows boxes I am backing up via backuppc are end users, as opposed to servers, and they have a bad habit of removing things they see in the tray; nor can I count on them to install something on their computer for me (some of them live in other states).  With rsync/cygwin, I can push the files onto their drive via the C$ share, and create/start a service for them via the net rpc command--so they never see anything that they'd likely interfere with.

Thanks,

--Mark


-----Original Message-----
From: Jürgen Depicker [mailto:Jurgen.Depicker AT let DOT be]
Sent: Thursday, August 01, 2013 3:28 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

-> Mark, did you try DeltaCopy already? It is extremely easy to configure and it 'just works': no need to install Cygwin.  I use it for many years on Server 2003; I installed it yesterday on a Windows Server 2012 and it works flawlessly, so probably W8 will be fine too.
http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp
It is an Rsync server; if you want to secure the transfer, you'll need to look for CopSSH instead.

Grts,
Juergen




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/

------------------------------------------------------------------------------
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/