SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
rsync/ssh to Windows
Author Message
Post rsync/ssh to Windows 
Hi list.

I have used rsnapshot to backup Linux boxes with great success.
Now I am trying to backup some Windows boxes.

A collegue who has more Windows experience has set up a test machine
here with Windows XP, CygWin, rsync and ssh.

I have set up an RSA key on the Windows box so I can ssh to it.

When I do the rsync (over ssh) to pull data from the Windows box,
I'm finding that it generally hangs part-way through the transfer.

It seems to be hanging at the start of a file (I can see the temporary
file being created with zero size).

Is this a common problem?
Would using cwrsync be likely to solve it?
If installing cwrsync, should we uninstall cygwin/rsync/ssh first?

___________________________________________________________________________
David Keegel <djk < at > cybersource.com.au> http://www.cyber.com.au/users/djk/
Cybersource P/L: Linux/Unix Systems Administration Consulting/Contracting


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post rsync/ssh to Windows 
I didn't get any response to my previous email, so here is an update.
I'm still having some difficulties with Windows and rsync.

If anyone is using rsnapshot on Linux to backup remote Windows boxes,
and finds it working nicely and reliably, I would like to know how
you did it. (Mainly, what Windows software do you use?)

I've tried cwRsyncServer 2.0.1, and have two problems:

(A1) The cwRsync installer gives an error during the install.
It seems to create a directory C:\Program Files\cwRsyncServer
which it does not have permission to read, and so I get
errors 3/4 of the way through the install, creating files.
We got around this by changing permissions on that directory
when the install was stopped at an error.

(A2) I ticked the "Openssh" box during the install, but the ssh
service does not seem to start, if I start the service manually.
It takes ages (minutes) trying to start.

So I can use rsync in daemon mode, but I would rather use rsync
over ssh (so I can set up RSA keys for automated secure access,
so the backup data is encrypted in transit, and so there is no
anonymous access to the data being backed up).

When using the other system (Cygwin and rsync installed separately),
I had this problem:

(B1) During the rsync file transfer, rsync would hang at some point.
It would hang on different files at different times. It seemed
to create a zero length temporary file, and just stop. This might
be a Cygwin problem.

So I'm looking for help, if anyone has quick suggestions/pointers.

Is there a known way to get windows and rsync working happily?
Or are there suggested solutions for cwRsync problems (A1 or A2),
or the Cygwin problem (B1)?

I seem to be able to use rsync daemon mode on both setups, so if I
don't see an answer soon, I will probably just settle for that.

On Tue, Jul 05, 2005 at 04:07:50PM +1000, David Keegel wrote:
Hi list.

I have used rsnapshot to backup Linux boxes with great success.
Now I am trying to backup some Windows boxes.

A collegue who has more Windows experience has set up a test machine
here with Windows XP, CygWin, rsync and ssh.

I have set up an RSA key on the Windows box so I can ssh to it.

When I do the rsync (over ssh) to pull data from the Windows box,
I'm finding that it generally hangs part-way through the transfer.

It seems to be hanging at the start of a file (I can see the temporary
file being created with zero size).

Is this a common problem?
Would using cwrsync be likely to solve it?
If installing cwrsync, should we uninstall cygwin/rsync/ssh first?

___________________________________________________________________________
David Keegel <djk < at > cybersource.com.au> http://www.cyber.com.au/users/djk/
Cybersource P/L: Linux/Unix Systems Administration Consulting/Contracting


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

--
___________________________________________________________________________
David Keegel <djk < at > cybersource.com.au> http://www.cyber.com.au/users/djk/
Cybersource P/L: Linux/Unix Systems Administration Consulting/Contracting


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post rsync/ssh to Windows 
On Mon, July 11, 2005 12:40 am, David Keegel said:
I didn't get any response to my previous email, so here is an update.
I'm still having some difficulties with Windows and rsync.

If anyone is using rsnapshot on Linux to backup remote Windows boxes,
and finds it working nicely and reliably, I would like to know how
you did it. (Mainly, what Windows software do you use?)

I've tried cwRsyncServer 2.0.1, and have two problems:

(A1) The cwRsync installer gives an error during the install.
It seems to create a directory C:\Program Files\cwRsyncServer
which it does not have permission to read, and so I get
errors 3/4 of the way through the install, creating files.
We got around this by changing permissions on that directory
when the install was stopped at an error.

(A2) I ticked the "Openssh" box during the install, but the ssh
service does not seem to start, if I start the service manually.
It takes ages (minutes) trying to start.

So I can use rsync in daemon mode, but I would rather use rsync
over ssh (so I can set up RSA keys for automated secure access,
so the backup data is encrypted in transit, and so there is no
anonymous access to the data being backed up).

When using the other system (Cygwin and rsync installed separately),
I had this problem:

(B1) During the rsync file transfer, rsync would hang at some point.
It would hang on different files at different times. It seemed
to create a zero length temporary file, and just stop. This might
be a Cygwin problem.

So I'm looking for help, if anyone has quick suggestions/pointers.

Is there a known way to get windows and rsync working happily?
Or are there suggested solutions for cwRsync problems (A1 or A2),
or the Cygwin problem (B1)?

I seem to be able to use rsync daemon mode on both setups, so if I
don't see an answer soon, I will probably just settle for that.

On Tue, Jul 05, 2005 at 04:07:50PM +1000, David Keegel wrote:
Here is how I do it using debian and windows 2003

I downloaded the latest stable kernel from www.kernel.org and recompiled
to use that kernel with CIFS support. This way I can create a mount point
and mount the windows 2003 filesystem. (Map a network drive from debian
to windows 2003). Using this mount point, it is a simple matter to
perform any backup I want.

apt-get install kernel-package libncurses5-dev fakeroot wget bzip2
kernel-source-2.6.8 tk8.3 gcc nmap nano rsync module-init-tools smbfs
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.12.2.tar.bz2
tar -jxf linux-2.6.12.2.tar.bz2
ln -s linux-2.6.12.2 linux
cd linux
make menuconfig
(At this point go in and make sure that you select network filesystems
CIFS support. I did not use any experimental stuff)
fakeroot make-kpkg clean
fakeroot make-kpkg --append-to-version=.cryptkeeper kernel_image
dpkg -i kernel-image-2.6.12.2.cryptkeeper_10.00.Custom_i386.deb
mkinitrd -o /boot/initrd.img-2.6.12.2.cryptkeeper
/lib/modules/2.6.12.2.cryptkeeper
update-grub
reboot into the new kernel.

I am them able to use the mount.cifs command to map my network drive to
the windows2003 computer.
/sbin/mount.cifs //192.168.0.1/e$ /mnt/galileo -o user=username%password

You can then configure the rsnapshot.conf to backup the mount point just
like it was any other directory.

backup /mnt/galileo/mike mike/

One caveat I found was to have a script that remounts the drives about 5
minutes before I run the rsnapshot task. This seems to "wake" windows up
on the other side. Otherwise I was getting sporadic errors that the files
did not exist. According to the reading I have done this is due to how
microsoft implemented CIFS into windows 2003. I do not have this problem
when going against an NT box.



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post rsync/ssh to Windows 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi David,

Judging by my response time, I assume by now you've gone for the
daemon mode :)

I don't think anyone has a 100% solution for Windows, rsync, and ssh.
If there is a perfectly reliable combination, I'd love to hear about
it and document it for everyone to use.

The few times I tried it, I ran into problems similar to what you are
experiencing. However, there are people out there using it with
rsnapshot, so I'm pretty sure it can be done.

Being that I don't use Windows much anymore, this hasn't been a top
priority for me personally.

If anyone out there knows of a sure-fire reliable way to get this
working, I would love to put it on the rsnapshot site, since I'm sure
a lot of people could benefit from it, even if they don't use rsnapshot.

Thanks,
- -Nathan

If anyone is using rsnapshot on Linux to backup remote Windows
boxes, and finds it working nicely and reliably, I would like to
know how

I seem to be able to use rsync daemon mode on both setups, so if I
don't see an answer soon, I will probably just settle for that.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC4/kqgBvN4A95aoYRAmDXAKCgZGDNpRa/gug/OffPMt73Fle1lwCg1MNy
gU972FwEYhbg8HyYZEudmCo=
=xU8/
-----END PGP SIGNATURE-----



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB