Here's a script I wrote to take the local Backup and Restore files and the TACACS+ Accounting logs and copy them to a network drive. The script will go to the network and into the Backups folder, create a folder of its computer name, go inside of that folder and create a another folder with the current timestamp. It will then move the files from the local server to the network drive. Save as a *.cmd file and schedule it to run weekly/monthly/etc.
@BigR off
REM =================================================
REM Move the Backups
REM =================================================
REM Move to G: drive and get to the folder we want.
g:
cd \
cd ACS\Backups\
REM Create a directory as the computer name
md %COMPUTERNAME%
REM Move into that directory
cd %COMPUTERNAME%
REM Get Day,Mth & Year from the %Date% system variable
set Day=%Date:~4,2%
set Mth=%Date:~7,2%
set Yr=%Date:~10,4%
REM Create the Date directory
md %Yr%-%Day%_%Mth%
REM Create another variable for the date folder name
set timestmp=%Yr%-%Day%_%Mth%
REM Move to the local drive where the logs reside
c:
cd \
cd Program Files\CiscoSecure ACS v4.2\Logs\Backup and Restore
REM REM Move the files on over
move *.dmp G:\ACS\Backups\%COMPUTERNAME%\%timestmp%\
REM =================================================
REM Move the TACACs Acccounting Logs
REM =================================================
REM Move to G: drive and go to the folder we want.
g:
cd \
cd ACS\Logging\
REM Create a directory as the computer name
md %COMPUTERNAME%
REM Move into that directory
cd %COMPUTERNAME%
REM Create the Date directory
md %Yr%-%Day%_%Mth%
REM Move to the local drive where the logs reside
c:
cd "C:\Program Files\CiscoSecure ACS v4.2\Logs\TACACS+ Administration"
REM Move the files on over
move "Tacacs+ Administration 2*.csv" G:\ACS\Logging\%COMPUTERNAME%\%timestmp%\