Page 2 of 2

Re: Backup Remote Windows to Linux Via Tunnel

Posted: 06 Aug 2014, 04:36
by Snorkasaurus
LAWL! I really need to explain a little better! :-)

I have a machine that I call my "server". It runs Windows and it is a web server (Apache/PHP/etc), a mail server (hMailServer for SMTP & IMAP), it runs AdiIRC to act as an IRC bot, and a few other minor services that are publicly available. This machine is not at my house... I live in the woods and get 3Mbit connectivity on a GOOD day, so I put my "server" at someone else's house where they have a much faster and more reliable connection. This machine is behind a static IP address of course so that the publicly available services can easily be reached.

Here at my house I have another box that I call my "home server". It runs also Windows and provides me with a shared drive which I use to store documents. It runs VirtualBox with a small Debian VM used only for Asterisk (I tried some Windows based PBX software but they were all awful). It also has Apache for a little internal-only wiki site I keep for myself, and it runs qBitTorrent which I can conveniently add torrents to by dropping .torrent files on my shared drive. I had also been experimenting with using it as a backup mail server but I can live without that.

Now I figured that if I were going to have important data at two different locations I may as well use them to back each other up. So I setup my "home server" here at my house to use WinSCP to automatically connect to FreeSSHd on my "remote" server and sync backups of each other. I have tried to replace the remote server with Linux in the past but mail services keeps dragging me back to Windows there.

Recently I had some problems with my "home server" and although it is still [sort of] running, I decided to replace it. I figured that if I were going to replace it, then I may as well have another try at Linux. Most of the things my "home server" does (apache, php, samba, etc) can easily be transferred to Linux, but the backup sync'ing services of WinSCP don't seem to be so easily transferred. If my "remote server" were running Linux I am sure rsync would work quite nicely, but of course I can't get away from Windows there because of hMailServer.

If I were to use WinSCP (or any other rsync-like software) on my remote server to "push" backups to my house I could use dyndns (he.net has easily configurable dynamic entries) but I really don't want to depend on up-to-date dns entries. I would guess that the likelihood of someone setting up a fake sshd to accept my backups would be thousands of times more likely than a Cold Boot Attack Vector. :-)

Hopefully that'll make a little more sense overall. :-)
S.

Re: Backup Remote Windows to Linux Via Tunnel

Posted: 06 Aug 2014, 10:51
by viking60
Ah OK - it is so unusual to use WIndows as a server and Linux as a client that it does not sink in I guess :-D
Maybe this can help:
https://www.gefoo.org/rsync-your-backup ... s-box.html

Re: Backup Remote Windows to Linux Via Tunnel

Posted: 06 Aug 2014, 15:13
by Snorkasaurus
The problem I have with cwrsync is that it requires the Windows box to initiate the connection to the Linux box, which I can't do since the Linux box is behind a dynamic IP. A secondary reason is because I would prefer to "pull" the data from the Windows box to the Linux box, but that reasoning is slightly less important. What I need is an SSH server for the Windows box or an automated SFTP client for the Linux box... though I think I am more likely to find the latter.
S.

Re: Backup Remote Windows to Linux Via Tunnel

Posted: 06 Aug 2014, 18:30
by viking60
Well yes an SSH server for the Windows box is possible and costs mucho dinero. I am not sure about automated SFTP clients :confused

Re: Backup Remote Windows to Linux Via Tunnel

Posted: 06 Aug 2014, 19:17
by Snorkasaurus
viking60 wrote:Well yes an SSH server for the Windows box is possible and costs mucho dinero.
Oh no, FreeSSHd is a free SSH server for Windows and works great. :-)

S.

Re: Backup Remote Windows to Linux Via Tunnel

Posted: 06 Aug 2014, 20:07
by viking60
Yes I knew that - I must have meant rsync. :-D