Just thought I'd share as this script has saved me and my brother a couple of times from losing our characters. This script will create every backup in a separate WinRAR file (compressed), this means you have multiple choices of backups to restore your character from if anything goes wrong
You'll need WinRAR installed.
Put this into a "name.bat" file (start Notepad, paste the code in and name it e.g. TQBackup.bat):
Code:
@echo off
set CURRDATE=%DATE:/=-%
set CURRTIME=%time:~-10,1%-%time:~-8,2%-%time:~-5,2%
set TQPATH=C:\My Documents\My Games\Titan Quest - Immortal Throne\
set WINRAR=C:\Program Files\WinRAR\rar
set DEST=E:\Game Saves\Titan Quest - Immortal Throne
cd /D %TQPATH%
"%WINRAR%" a -r "%DEST%\%CURRDATE%_%CURRTIME%.rar" *.*
You'll just need to change the paths according to your setup.
TQPATH = The path to where your character are stored. So, for example if you're on TQ original change to C:\My Documents\My Games\Titan Quest
WINRAR = This is where your WinRAR is installed. If you use Windows XP this will typically be the same, if on Vista x64 then it'll probably be "C:\Program Files (x86)\WinRAR\rar"
DEST = This is where you want the backups to go. Make sure there is
no backslash after this folder address. In my case the backups are going to E:\Game Saves\Titan Quest - Immortal Throne (my external).
If you have changed none of your install/storage locations, and you're on Windows XP the full script posted above should work 'out of the box' providing you change the backup destination.
If you'd like to backup your vault as well (if you use TQVault) use the following script:
Code:
@echo off
set CURRDATE=%DATE:/=-%
set CURRTIME=%time:~-10,1%-%time:~-8,2%-%time:~-5,2%
set TQPATH=C:\My Documents\My Games\Titan Quest - Immortal Throne\
set VAULTPATH=C:\My Documents\My Games\Titan Quest\TQVaultData\
set WINRAR=C:\Program Files (x86)\WinRAR\rar
set DEST=E:\Game Saves\Titan Quest - Immortal Throne
cd /D %TQPATH%
"%WINRAR%" a -r "%DEST%\%CURRDATE%_%CURRTIME%.rar" *.*
cd /D %VAULTPATH%
"%WINRAR%" a -r "%DEST%\VAULT_%CURRDATE%_%CURRTIME%.rar" *.*
The above will backup your Vault into a separate RAR folder.
VAULTPATH = Location of the Vault data, this will usually be the same for everyone.