|
WebApp Sec
mailing list archives
Re: Copying files from one server to another.
From: "Michael Sztachanski" <michael.sztachanski () flightcentre com au>
Date: Thu, 24 Feb 2005 13:10:23 +1000
"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
By Date
By Thread
Current thread:
Copying files from one server to another. Eric Boughner (Feb 23)
RE: ISA Server and SQL Injection Evans, Arian (Mar 03)
|