SearchFAQMemberlist Log in
Reply to topic Page 4 of 4
Goto page Previous  1, 2, 3, 4
Trouble setting up backup to a Windows host
Author Message
Post Trouble setting up backup to a Windows host 
-----Original Message-----
From: Les Mikesell [mailto:lesmikesell < at > gmail.com]
Sent: Wednesday, March 24, 2010 5:51 PM
To: backuppc-users < at > lists.sourceforge.net
Subject: Re: [BackupPC-users] Trouble setting up backup to a Windows host

[...]
I'm expecting a nightly reboot of the Win2k3-server I've been working on
before, as Cygwin has been locked to lsass.exe, and I want to delete
everything Cygwin and start from scratch on that machine as well.

Tomorrow will tell if ssh to a Win2k3-machine will work as well. Here's
hoping. 8-}

Did you run the cygwin mkpasswd and mkgroup tools with the -D domain
option to build the needed local passwd/group files to work with domain
logins?

No. I wanted to make sure ssh works properly first from linux to Windows,
following the howto available at <<http://www.netadmintools.com/art516.html>>.
--
/Sorin

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post Trouble setting up backup to a Windows host 
-----Original Message-----
From: Sorin Srbu [mailto:sorin.srbu < at > orgfarm.uu.se]
Sent: Thursday, March 25, 2010 8:16 AM
To: 'General list for user discussion, questions and support'
Subject: Re: [BackupPC-users] Trouble setting up backup to a Windows host

[...]
I'm expecting a nightly reboot of the Win2k3-server I've been working on
before, as Cygwin has been locked to lsass.exe, and I want to delete
everything Cygwin and start from scratch on that machine as well.

Tomorrow will tell if ssh to a Win2k3-machine will work as well. Here's
hoping. 8-}

Did you run the cygwin mkpasswd and mkgroup tools with the -D domain
option to build the needed local passwd/group files to work with domain
logins?

No. I wanted to make sure ssh works properly first from linux to Windows,
following the howto available at
<<http://www.netadmintools.com/art516.html>>.

Slowly getting there I think. I managed to have ssh work from BPC-server to
Windows-server, and vice-versa, using a local admin account on the Win-Server.
After some permissions editing on the BPC-server I also managed to have the
passwordless ssh login working from BPC to Windows. Now to get rsync to
actually work...

FWIW, I also ran "mkpasswd -cl > /etc/passwd" and "mkgroup --local >
/etc/group" on the Win-server. This is for local accounts only, as I mentioned
before, the only thing I seem to get to work. For now it'll do.

As for rsync, would this howto,
http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=CommonConfigurationIssues#Howto_backup_a_Windows_Client_using_rsyncd,
be a good start, or is there something better I should look at?

--
/Sorin

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post Trouble setting up backup to a Windows host 
-----Original Message-----
From: Sorin Srbu [mailto:sorin.srbu < at > orgfarm.uu.se]
Sent: Thursday, March 25, 2010 11:27 AM
To: 'General list for user discussion, questions and support'
Subject: Re: [BackupPC-users] Trouble setting up backup to a Windows host

[...]
As for rsync, would this howto,
http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=CommonConfigurati
onIssues#Howto_backup_a_Windows_Client_using_rsyncd,
be a good start, or is there something better I should look at?

Installed rsyncd to the Win-machine and the services now run. In BPC I set it
to use rsyncd and the RsyncdUserName and ditto password to one of the local
accounts with access to the folders I want to backup.

The RsyncShareName I entered as /cygdrive/e/users/, which is where the user
folders are located. I tested that the $ RsyncdUserName really has access to
/cygdrive/e/users/.

Now BPC says as follows, from the BPC Log file:

2010-03-25 14:30:57 full backup started for directory /cygdrive/e/users/
2010-03-25 14:30:57 Got fatal error during xfer (Unknown module
'/cygdrive/e/users/')
2010-03-25 14:31:02 Backup aborted (Unknown module '/cygdrive/e/users/')

I'm not sure what it means by unknown module. Has this something to do with
the rsyncd.conf on the Win-client?
--
/Sorin

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post Trouble setting up backup to a Windows host 
On 3/25/2010 8:36 AM, Sorin Srbu wrote:
-----Original Message-----
From: Sorin Srbu [mailto:sorin.srbu < at > orgfarm.uu.se]
Sent: Thursday, March 25, 2010 11:27 AM
To: 'General list for user discussion, questions and support'
Subject: Re: [BackupPC-users] Trouble setting up backup to a Windows host

[...]
As for rsync, would this howto,
http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=CommonConfigurati
onIssues#Howto_backup_a_Windows_Client_using_rsyncd,
be a good start, or is there something better I should look at?

Installed rsyncd to the Win-machine and the services now run. In BPC I set it
to use rsyncd and the RsyncdUserName and ditto password to one of the local
accounts with access to the folders I want to backup.

The RsyncShareName I entered as /cygdrive/e/users/, which is where the user
folders are located. I tested that the $ RsyncdUserName really has access to
/cygdrive/e/users/.

Now BPC says as follows, from the BPC Log file:

2010-03-25 14:30:57 full backup started for directory /cygdrive/e/users/
2010-03-25 14:30:57 Got fatal error during xfer (Unknown module
'/cygdrive/e/users/')
2010-03-25 14:31:02 Backup aborted (Unknown module '/cygdrive/e/users/')

I'm not sure what it means by unknown module. Has this something to do with
the rsyncd.conf on the Win-client?

Are you confusing rsync and rsyncd? With rsync, you start the remote
rsync via ssh and it sees the whole remote filesystem from the
perspective of a remote user. You can test access from the backuppc
server with a command line like 'rsync -av user < at > host:/path' If you
don't specify a destination, you should see a directory listing (and
current versions have an implied -essh argument). With rsyncd, the
program is run as a daemon/service and only the paths explicitly
mentioned in rsyncd.conf are exposed by their module names. You can
test this with a command like 'rsync -av host::module' (note double colon).

--
Les Mikesell
lesmikesell < at > gmail.com



------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post Trouble setting up backup to a Windows host 
-----Original Message-----
From: Les Mikesell [mailto:lesmikesell < at > gmail.com]
Sent: Thursday, March 25, 2010 4:04 PM
To: backuppc-users < at > lists.sourceforge.net
Subject: Re: [BackupPC-users] Trouble setting up backup to a Windows host

[...]
Installed rsyncd to the Win-machine and the services now run. In BPC I set
it
to use rsyncd and the RsyncdUserName and ditto password to one of the local
accounts with access to the folders I want to backup.

The RsyncShareName I entered as /cygdrive/e/users/, which is where the user
folders are located. I tested that the $ RsyncdUserName really has access
to
/cygdrive/e/users/.

Now BPC says as follows, from the BPC Log file:

2010-03-25 14:30:57 full backup started for directory /cygdrive/e/users/
2010-03-25 14:30:57 Got fatal error during xfer (Unknown module
'/cygdrive/e/users/')
2010-03-25 14:31:02 Backup aborted (Unknown module '/cygdrive/e/users/')

I'm not sure what it means by unknown module. Has this something to do with
the rsyncd.conf on the Win-client?

Are you confusing rsync and rsyncd? With rsync, you start the remote
rsync via ssh and it sees the whole remote filesystem from the
perspective of a remote user. You can test access from the backuppc
server with a command line like 'rsync -av user < at > host:/path' If you
don't specify a destination, you should see a directory listing (and
current versions have an implied -essh argument). With rsyncd, the
program is run as a daemon/service and only the paths explicitly
mentioned in rsyncd.conf are exposed by their module names. You can
test this with a command like 'rsync -av host::module' (note double colon).

I hope not. Wink I tried rsync with ssh first, but that didn't work out
("unable to read 4 bytes"), so I tried rsyncd instead. Now the sshd service on
the Win2k3-machine refuses to start for some reason, it was off this morning.
Sshd on the WinXP-box still runs...

The rsyncd test tells me:

root < at > mach012 ~/ [0]# rsync -avv xxx.yyy.zzz.nnn::starforge2_users
opening tcp connection to xxx.yyy.zzz.nnn port 873
opening connection using --server --sender -vvlogDtpr --list-only .
starforge2_users
Password:
< at > ERROR: auth failed on module starforge2_users
rsync error: error starting client-server protocol (code 5) at main.c(1296)
[receiver=2.6.8]
root < at > mach012 ~/ [0]#

It feels like I'm getting at roads end with this. Things that work on one
Win-machine doesn't on another, it's so, so, frustrating. 8-/
--
/Sorin

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post Trouble setting up backup to a Windows host 
-----Original Message-----
From: Sorin Srbu [mailto:sorin.srbu < at > orgfarm.uu.se]
Sent: Friday, March 26, 2010 9:56 AM
To: 'General list for user discussion, questions and support'
Subject: Re: [BackupPC-users] Trouble setting up backup to a Windows host

-----Original Message-----
From: Les Mikesell [mailto:lesmikesell < at > gmail.com]
Sent: Thursday, March 25, 2010 4:04 PM
To: backuppc-users < at > lists.sourceforge.net
Subject: Re: [BackupPC-users] Trouble setting up backup to a Windows host

[...]
Are you confusing rsync and rsyncd? With rsync, you start the remote
rsync via ssh and it sees the whole remote filesystem from the
perspective of a remote user. You can test access from the backuppc
server with a command line like 'rsync -av user < at > host:/path' If you
don't specify a destination, you should see a directory listing (and
current versions have an implied -essh argument). With rsyncd, the
program is run as a daemon/service and only the paths explicitly
mentioned in rsyncd.conf are exposed by their module names. You can
test this with a command like 'rsync -av host::module' (note double colon).

An unexpected turn of events! I googled for a different ssh-server for Windows
that does not rely on Cygwin, and came up with something called MobaSSH.
MobaSSH does however rely on Cygwin anyway, but seems to be working properly
in my environment. In any case, I installed the Professional-demo, able to
install and run on a Win2k3 Server-machine (the free Home version only works
on non-Windows Server-machines). The service seems to be running properly so
far.

* The rsync test works, I get a file list. See attached txt-file for output.

* The passwordless login from my BPC-server also works. See attached txt-file
for output.

* Added the Win-server to BPC as a host using rsync, but I get the dreaded
"Unable to read 4 bytes" error message. See attached txt-file for output.

I thought the "Unable to read 4 bytes"-message was because the the
passwordless login wasn't setup properly, or not set up at all. What else
could it choke on and give this message?

Any answers are appreciated!
--
/Sorin

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post Trouble setting up backup to a Windows host 
Sorin Srbu wrote:
-----Original Message-----
From: Les Mikesell [mailto:lesmikesell < at > gmail.com]
Sent: Thursday, March 25, 2010 4:04 PM
To: backuppc-users < at > lists.sourceforge.net
Subject: Re: [BackupPC-users] Trouble setting up backup to a Windows host

[...]
Installed rsyncd to the Win-machine and the services now run. In BPC I set
it
to use rsyncd and the RsyncdUserName and ditto password to one of the local
accounts with access to the folders I want to backup.

The RsyncShareName I entered as /cygdrive/e/users/, which is where the user
folders are located. I tested that the $ RsyncdUserName really has access
to
/cygdrive/e/users/.

Now BPC says as follows, from the BPC Log file:

2010-03-25 14:30:57 full backup started for directory /cygdrive/e/users/
2010-03-25 14:30:57 Got fatal error during xfer (Unknown module
'/cygdrive/e/users/')
2010-03-25 14:31:02 Backup aborted (Unknown module '/cygdrive/e/users/')

I'm not sure what it means by unknown module. Has this something to do with
the rsyncd.conf on the Win-client?
Are you confusing rsync and rsyncd? With rsync, you start the remote
rsync via ssh and it sees the whole remote filesystem from the
perspective of a remote user. You can test access from the backuppc
server with a command line like 'rsync -av user < at > host:/path' If you
don't specify a destination, you should see a directory listing (and
current versions have an implied -essh argument). With rsyncd, the
program is run as a daemon/service and only the paths explicitly
mentioned in rsyncd.conf are exposed by their module names. You can
test this with a command like 'rsync -av host::module' (note double colon).

I hope not. Wink I tried rsync with ssh first, but that didn't work out
("unable to read 4 bytes"), so I tried rsyncd instead. Now the sshd service on
the Win2k3-machine refuses to start for some reason, it was off this morning.
Sshd on the WinXP-box still runs...

The rsyncd test tells me:

root < at > mach012 ~/ [0]# rsync -avv xxx.yyy.zzz.nnn::starforge2_users
opening tcp connection to xxx.yyy.zzz.nnn port 873
opening connection using --server --sender -vvlogDtpr --list-only .
starforge2_users
Password:
< at > ERROR: auth failed on module starforge2_users
rsync error: error starting client-server protocol (code 5) at main.c(1296)
[receiver=2.6.8]
root < at > mach012 ~/ [0]#

It feels like I'm getting at roads end with this. Things that work on one
Win-machine doesn't on another, it's so, so, frustrating. 8-/

The password it requested there would be in the secrets file you specified in
the rsyncd.conf It doesn't relate to windows users at all - and it can be
included in the backuppc setup for rsyncd.

--
Les Mikesell
lesmikesell < at > gmail.com


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post Trouble setting up backup to a Windows host 
On 3/26/2010 6:07 AM, Sorin Srbu wrote:
-----Original Message-----
From: Sorin Srbu [mailto:sorin.srbu < at > orgfarm.uu.se]
Sent: Friday, March 26, 2010 9:56 AM
To: 'General list for user discussion, questions and support'
Subject: Re: [BackupPC-users] Trouble setting up backup to a Windows host

-----Original Message-----
From: Les Mikesell [mailto:lesmikesell < at > gmail.com]
Sent: Thursday, March 25, 2010 4:04 PM
To: backuppc-users < at > lists.sourceforge.net
Subject: Re: [BackupPC-users] Trouble setting up backup to a Windows host

[...]
Are you confusing rsync and rsyncd? With rsync, you start the remote
rsync via ssh and it sees the whole remote filesystem from the
perspective of a remote user. You can test access from the backuppc
server with a command line like 'rsync -av user < at > host:/path' If you
don't specify a destination, you should see a directory listing (and
current versions have an implied -essh argument). With rsyncd, the
program is run as a daemon/service and only the paths explicitly
mentioned in rsyncd.conf are exposed by their module names. You can
test this with a command like 'rsync -av host::module' (note double colon).

An unexpected turn of events! I googled for a different ssh-server for Windows
that does not rely on Cygwin, and came up with something called MobaSSH.
MobaSSH does however rely on Cygwin anyway, but seems to be working properly
in my environment. In any case, I installed the Professional-demo, able to
install and run on a Win2k3 Server-machine (the free Home version only works
on non-Windows Server-machines). The service seems to be running properly so
far.

* The rsync test works, I get a file list. See attached txt-file for output.

* The passwordless login from my BPC-server also works. See attached txt-file
for output.

* Added the Win-server to BPC as a host using rsync, but I get the dreaded
"Unable to read 4 bytes" error message. See attached txt-file for output.

I thought the "Unable to read 4 bytes"-message was because the the
passwordless login wasn't setup properly, or not set up at all. What else
could it choke on and give this message?

Any answers are appreciated!

When running over ssh it is important that nothing is sent before the
rsync program starts up. Can you disable that login message?

--
Les Mikesell
lesmikesell < at > gmail.com

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post Trouble setting up backup to a Windows host 
-----Original Message-----
From: Les Mikesell [mailto:lesmikesell < at > gmail.com]
Sent: Friday, March 26, 2010 3:33 PM
To: backuppc-users < at > lists.sourceforge.net
Subject: Re: [BackupPC-users] Trouble setting up backup to a Windows host

[...]

* The rsync test works, I get a file list. See attached txt-file for
output.

* The passwordless login from my BPC-server also works. See attached
txt-file
for output.

* Added the Win-server to BPC as a host using rsync, but I get the dreaded
"Unable to read 4 bytes" error message. See attached txt-file for output.

I thought the "Unable to read 4 bytes"-message was because the the
passwordless login wasn't setup properly, or not set up at all. What else
could it choke on and give this message?

When running over ssh it is important that nothing is sent before the
rsync program starts up. Can you disable that login message?

Ah, yes. Forgot about that. Same thing we discussed and mentioned a while back
with the machine running Irix. Thanks for the reminder! Will check if the
login-greeting is possible to disable. Thanks!

Hmm... MobaSSH doesn't have a settings panel per se. Weird. I've mailed the
MobaSSH authors about disabling the greeter screen. Will report back later.
--
/Sorin

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post Trouble setting up backup to a Windows host 
-----Original Message-----
From: Sorin Srbu [mailto:sorin.srbu < at > orgfarm.uu.se]
Sent: Monday, March 29, 2010 8:55 AM
To: 'General list for user discussion, questions and support'
Subject: Re: [BackupPC-users] Trouble setting up backup to a Windows host

[...]
When running over ssh it is important that nothing is sent before the
rsync program starts up. Can you disable that login message?

Ah, yes. Forgot about that. Same thing we discussed and mentioned a while
back
with the machine running Irix. Thanks for the reminder! Will check if the
login-greeting is possible to disable. Thanks!

Hmm... MobaSSH doesn't have a settings panel per se. Weird. I've mailed the
MobaSSH authors about disabling the greeter screen. Will report back later.

Managed to remove it completely, by commenting out the welcome message. It was
done by starting the installer...

Starting a full backup from BPC I get the below message after e short while.

================
full backup started for directory /cygdrive/e/users/
Running: /usr/bin/ssh -q -x -l root xxx.yyy.zzz.nnn
/usr/bin/rsync --server --sender --numeric-ids --perms --owner --group -D --links
--hard-links --times --block-size=2048 --recursive --ignore-times .
/cygdrive/e/users/
Xfer PIDs are now 11849
Read EOF: Connection reset by peer
Tried again: got 0 bytes
Done: 0 files, 0 bytes
Got fatal error during xfer (Unable to read 4 bytes)
Backup aborted (Unable to read 4 bytes)
Not saving this as a partial backup since it has fewer files than the prior
one (got 0 and 0 files versus 0)
================


--
/Sorin

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Display posts from previous:
Reply to topic Page 4 of 4
Goto page Previous  1, 2, 3, 4
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