Veldje21
Active Newcomer
When browsing the Windows profiles, I found a large number of Sun Java installations in a lot of directories. Well, I don't need them to be backupped.
One can query the \Application Data\Sun\Java in the client, but one cannot delete them in every profile because you need a wildcard in your delete backup command.
I used a small batch file in order to achieve this:
c:
cd "Documents and Settings"
dir /a:d /b > c:\users.lst
cd\
cd "Program Files\Tivoli\TSM\baclient"
for /F "delims==" %%a in (c:\users.lst) do title %%a | start /wait dsmc.exe delete backup "c:\Documents and Settings\%%a\Application Data\Sun\Java\*" -subdir=yes -deltype=all -noprompt
One could repeat this for stored user profiles on a share.
Don't forget to add EXCLUDE.DIR "*:\...\Application Data\Sun\Java\*"
to your dsm.opt file (and restart the TSM service afterwards)
One can query the \Application Data\Sun\Java in the client, but one cannot delete them in every profile because you need a wildcard in your delete backup command.
I used a small batch file in order to achieve this:
c:
cd "Documents and Settings"
dir /a:d /b > c:\users.lst
cd\
cd "Program Files\Tivoli\TSM\baclient"
for /F "delims==" %%a in (c:\users.lst) do title %%a | start /wait dsmc.exe delete backup "c:\Documents and Settings\%%a\Application Data\Sun\Java\*" -subdir=yes -deltype=all -noprompt
One could repeat this for stored user profiles on a share.
Don't forget to add EXCLUDE.DIR "*:\...\Application Data\Sun\Java\*"
to your dsm.opt file (and restart the TSM service afterwards)