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
Current thread:
- Re: ISA Server and SQL Injection, (continued)
- Re: ISA Server and SQL Injection Paul Johnston (Feb 23)
- RE: ISA Server and SQL Injection Mark Curphey (Feb 23)
- Re: ISA Server and SQL Injection Paul Johnston (Feb 28)
- Re: ISA Server and SQL Injection Stephen de Vries (Feb 28)
- Re: ISA Server and SQL Injection Jan P. Monsch (Mar 01)
- Re: ISA Server and SQL Injection christopher (Mar 03)
- Re: ISA Server and SQL Injection Jan P. Monsch (Mar 03)
- Re: ISA Server and SQL Injection Paul Johnston (Mar 03)
- Object Caching with IE 6 XP SP2 Don Tuer (Feb 28)
- Re: Copying files from one server to another. Michael Sztachanski (Feb 23)
- RE: Copying files from one server to another. dave kleiman (Feb 23)
- Re: Copying files from one server to another. David (Feb 23)
- Re: ISA Server and SQL Injection Jan P. Monsch (Mar 03)
- Input Validation vs. Output Validation (was: ISA Server and SQL Injection) Jeff Williams (Mar 03)