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.shNow 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