WebApp Sec mailing list archives
RE: Copying files from one server to another.
From: "Booth, Simon" <simonbooth () kpmg co im>
Date: Thu, 24 Feb 2005 09:09:09 -0000
If you want 2 way replication take a look at Unison (another Unix product that will run under windows), or, if you want a proper Windows based product I've used LiveVault in the past with success. Regards Simon -----Original Message----- From: Michael Sztachanski [mailto:michael.sztachanski () flightcentre com au] Sent: 24 February 2005 03:10 To: Eric Boughner Cc: 'Sebastien Deleersnyder'; webappsec () securityfocus com Subject: Re: Copying files from one server to another. "Eric Boughner" <eric () evenlink com>,Internet writes:
Has anyone copied filed from one server to another for running a backup server. I have 2 windows 2000 servers that are networked together. I would like to make the one a running backup of the other server. Has anyone done this before? Eric
You can run rsync for windows. Just setup a scheduled task time for it to run. It will can the files and see what's changed and only copy the changed files. Here is a sample of a script that would reside on your Backup Server: Files Name: rsync_<system_name>.cmd @echo off setlocal set rsyncpath=L:\apps\cwrsync set rsyncserver=<name_of_bk_server> set exclude=L:\scripts\rsync\exclude.txt rem ** prevent rsync file permission problems ** set CYGWIN=nontsec rem ** Backup of <system> ** date /t echo Beginning mirror for <system> set srcdir=<directory(s)_you_want_backedup> time /t echo Mirroring %srcdir%/web call %rsyncpath%\rsync.exe -av --delete --exclude-from=%exclude% rsync://%rsyncserver%/%srcdir%/web L:/data/%srcdir%/ time /t echo Fixing permissions on %srcdir% call xcacls L:\data\%srcdir%\ /T /C /G everyone:F /Y
nul echo Finished mirror for <system>
------------------------- The about is Scheduled as a task and a rsync server service will run on the server to be backuped. If you have any more question feel free to ask. regards Michael ----- Michael Sztachanski Enterprise Web Applications/Systems Engineer Enterprise Web Services FLIGHTCENTRE TECHNOLOGY (A Division of Flight Centre Ltd) Level 1, 157 Ann Street, BRISBANE QLD 4000 Phone: +61 (0)7 3011 7151 Fax: +61 (0)7 3001 7788 *************************************************************************************** The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing client engagement letter. *****************************************************************************************
Current thread:
- RE: Copying files from one server to another. MAGNY David (Feb 28)
- <Possible follow-ups>
- RE: Copying files from one server to another. Booth, Simon (Feb 28)