REM Copy Today's MAPS Automated Backup from MAPS Argos Server to Backup Server

REM Copyright 2008, 2009 Bruce Knox
REM **Use this information and these scripts at your own risk. As a condition of using these scripts and information from this site, you agree to hold harmless both the University of Arkansas Cooperative Extension Service and Bruce Knox for any problems that they may cause or other situations that may arise from their use, and that neither the Extension Service nor I will be held liable for those consequences. The scripts and information are provided "as is" without warranty, implied or otherwise. Limitation of liability will be the amount paid to the University of Arkansas specifically for this information. (It was free:) 


REM MAPS Argos Server must be able to access the directory share on the Backup Server

REM XCOPY NOTES:
REM  /S           Copies directories and subdirectories except empty ones.
REM  /V           Verifies each new file.
REM  /D           Only Copy files with source time newer than the destination time. 
REM  /Y           Suppresses prompting to confirm you want to overwrite an
REM               existing destination file.
REM  /I           If destination does not exist and copying more than one file,
REM               assumes that destination must be a directory.

set today=%date:~-4%%date:~4,2%%date:~7,2%
echo %date% >> C:\ArgosFiles\maps_backup_today.log

REM Copy Today's MAPS Automated Backup 

echo *  Argos Data  *>> C:\ArgosFiles\maps_backup_today.log
xcopy "C:\Program Files\Evisions\MAPS\Service\Automatic Backups\%today%\*.*"  "\\backupserver\Program Files\Evisions\MAPS\Service\Automatic Backups" /SVDYI >> C:\ArgosFiles\maps_backup_today.log 2>&1

echo *  MAPS Argos Server's tnsnames.ora  * >> C:\ArgosFiles\maps_backup_today.log
xcopy "C:\odbcfolder\network\admin\tnsnames.ora"  "\\backupserver\Program Files\Evisions\MAPS\Service\Automatic Backups" /VDYI >> C:\ArgosFiles\maps_backup_today.log 2>&1

echo - >> C:\ArgosFiles\maps_backup_today.log
REM pause
EXIT

