Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #170873

Re: Debian server for backups of Windows clients

From Mike McGinn <mikemcginn@mcginnweb.net>
Newsgroups linux.debian.user
Subject Re: Debian server for backups of Windows clients
Date 2016-08-09 15:40 +0200
Message-ID <s4fqa-8bw-23@gated-at.bofh.it> (permalink)
References <s1Pgt-1Bc-21@gated-at.bofh.it> <s3OJj-7Q6-21@gated-at.bofh.it> <s3Z22-63f-25@gated-at.bofh.it> <s45TP-1Zf-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On 08/08/2016 11:29 PM, David Christensen wrote:
> On 08/08/2016 01:05 PM, Daniel Bareiro wrote:
>> We also have security
>> implications as the backup server and the Windows computer are in
>> different offices, so the backup would be over the Internet.
>
> For security, you can use an SSH tunnel (Cygwin openssh on the Windows
> machine).
>
>
> Backing up over a WAN connection is only practical if your links are
> fast and there isn't much data.  The same goes for verification,
> restore, and archiving jobs.  Imaging is likely to be impractical.  I'd
> consider building another backup machine and deploying it on the remote LAN.
>
>
> David
>
>
I have done this many times. It is not that complicated.
On the Windows machine make sure you have Cygwin and ssh installed. On 
the Linux machine create the account for the Windows machine to store 
backups in. Use an easy password for now.

On the Windows machine at the Cygwin terminal type "ssh-keygen -t rsa". 
Next use "ssh-copy-id" to copy the key to the Linux machine. You will be 
asked for your password.

Now write a script to tar cfz everything up and scp it to the Linux 
machine. Not as elegant as rsync, but the idea is to have a backup, mots 
Win machines don't have one. Test you script. Once you are satisfied it 
create a batch file to call the script.

You have to set the actual "DOS" path to your cygwin stuff. I have 
pasted the actual lines from mine below:

SET PATH=C:\cygwin64\bin;D:\cygwin\bin;%PATH%
C:\cygwin64\bin\bash.exe D:\cygwin\home\mike\bin\wwwBackup.sh

Now set up a scheduled task to run it every day on the Windows machine 
and a cron on the Linux machine to delete them after so many days so 
they don't fill up the disk.

Mike

-- 
Mike McGinn		KD2CNU
President, UU Congregation at Rock Tavern * www.uucrt.org
Laziness is what separates us from the beavers.
More kidneys than eyes ** Registered Linux User 377849

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Debian server for backups of Windows clients Daniel Bareiro <daniel-listas@gmx.net> - 2016-08-02 23:20 +0200
  Re: Debian server for backups of Windows clients David Christensen <dpchrist@holgerdanske.com> - 2016-08-03 05:30 +0200
    Re: Debian server for backups of Windows clients Daniel Bareiro <daniel-listas@gmx.net> - 2016-08-08 20:30 +0200
      Re: Debian server for backups of Windows clients David Christensen <dpchrist@holgerdanske.com> - 2016-08-09 05:30 +0200
        Re: Debian server for backups of Windows clients Daniel Bareiro <daniel-listas@gmx.net> - 2016-08-10 01:30 +0200
          Re: Debian server for backups of Windows clients David Christensen <dpchrist@holgerdanske.com> - 2016-08-10 04:00 +0200
            Re: Debian server for backups of Windows clients Celejar <celejar@gmail.com> - 2016-09-09 21:00 +0200
              Re: Debian server for backups of Windows clients Daniel Bareiro <daniel-listas@gmx.net> - 2016-09-09 21:50 +0200
                Re: Debian server for backups of Windows clients Celejar <celejar@gmail.com> - 2016-09-09 23:20 +0200
                Re: Debian server for backups of Windows clients Daniel Bareiro <daniel-listas@gmx.net> - 2016-09-11 14:30 +0200
                Re: Debian server for backups of Windows clients deloptes <deloptes@gmail.com> - 2016-09-10 00:10 +0200
                Re: Debian server for backups of Windows clients Daniel Bareiro <daniel-listas@gmx.net> - 2016-09-11 14:10 +0200
              Re: Debian server for backups of Windows clients David Christensen <dpchrist@holgerdanske.com> - 2016-09-10 05:40 +0200
                Re: Debian server for backups of Windows clients David Wright <deblis@lionunicorn.co.uk> - 2016-09-10 06:20 +0200
                Re: Debian server for backups of Windows clients "Neal P. Murphy" <neal.p.murphy@alum.wpi.edu> - 2016-09-10 07:30 +0200
                Re: Debian server for backups of Windows clients Dan Ritter <dsr@randomstring.org> - 2016-09-10 14:50 +0200
                Re: Debian server for backups of Windows clients rhkramer@gmail.com - 2016-09-10 16:30 +0200
                Re: Debian server for backups of Windows clients Gene Heskett <gheskett@shentel.net> - 2016-09-10 16:50 +0200
                Re: Debian server for backups of Windows clients rhkramer@gmail.com - 2016-09-10 17:00 +0200
                Re: Debian server for backups of Windows clients David Christensen <dpchrist@holgerdanske.com> - 2016-09-10 17:40 +0200
                Re: Debian server for backups of Windows clients Gene Heskett <gheskett@shentel.net> - 2016-09-10 19:40 +0200
                Re: Debian server for backups of Windows clients "Neal P. Murphy" <neal.p.murphy@alum.wpi.edu> - 2016-09-11 07:50 +0200
                Re: Debian server for backups of Windows clients David Christensen <dpchrist@holgerdanske.com> - 2016-09-10 08:20 +0200
                Re: Debian server for backups of Windows clients Celejar <celejar@gmail.com> - 2016-09-11 04:30 +0200
            Re: Debian server for backups of Windows clients Daniel Bareiro <daniel-listas@gmx.net> - 2016-09-09 21:50 +0200
              Re: Debian server for backups of Windows clients David Christensen <dpchrist@holgerdanske.com> - 2016-09-10 05:50 +0200
                Re: Debian server for backups of Windows clients Celejar <celejar@gmail.com> - 2016-09-11 04:30 +0200
                Re: Debian server for backups of Windows clients David Christensen <dpchrist@holgerdanske.com> - 2016-09-11 05:10 +0200
  Re: Debian server for backups of Windows clients didier gaumet <didier.gaumet@gmail.com> - 2016-08-03 10:40 +0200
    Re: Debian server for backups of Windows clients Daniel Bareiro <daniel-listas@gmx.net> - 2016-08-10 01:40 +0200
      Re: Debian server for backups of Windows clients didier gaumet <didier.gaumet@gmail.com> - 2016-08-11 18:50 +0200
        Re: Debian server for backups of Windows clients didier gaumet <didier.gaumet@gmail.com> - 2016-08-11 19:00 +0200
  Re: Debian server for backups of Windows clients Darac Marjal <mailinglist@darac.org.uk> - 2016-08-08 11:10 +0200
    Re: Debian server for backups of Windows clients Daniel Bareiro <daniel-listas@gmx.net> - 2016-08-08 22:10 +0200
      Re: Debian server for backups of Windows clients David Christensen <dpchrist@holgerdanske.com> - 2016-08-09 05:30 +0200
        Re: Debian server for backups of Windows clients Mike McGinn <mikemcginn@mcginnweb.net> - 2016-08-09 15:40 +0200
    Re: Debian server for backups of Windows clients Glenn English <ghe@slsware.net> - 2016-08-08 23:40 +0200
      Re: Debian server for backups of Windows clients Daniel Bareiro <daniel-listas@gmx.net> - 2016-08-09 03:20 +0200
  Re: Debian server for backups of Windows clients Joel Wirāmu Pauling <joel@aenertia.net> - 2016-08-10 02:20 +0200

csiph-web