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