for backup in your wgsclean.bat or wgsclean.ini

Discussion on running your own board and editing MajorMUD.
Post Reply
Bloodrock
Posts: 301
Joined: Mon Jul 16, 2012 9:02 pm

for backup in your wgsclean.bat or wgsclean.ini

Post by Bloodrock »

here is a great add to your backup process what this does is each night it copies your zip file of dats or whatever ya do for backup if it already exists it numbers the file
quotes for destination for me was needed cause of being a network drive tested and works awesomely :) i would suggest you insert it just after zip/rar file is created

@echo off

set Source=C:\wgwcc.zip
set Destination="\\ajp\tonybook\nightly\"
set Filename=wgwcc
set a=1

:loop
if exist %Destination%\%Filename%(%a%).zip set /a a+=1 && goto :loop
copy %Source% %Destination%\%Filename%(%a%).zip


Post Reply