Respaldos de Team System Team Fundation Source Control
El siguiente script te ayuda a crear un respaldo por línea de comandos del código contenido en Team Foundation Server Source Control
"C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\tf.exe" get /recursive /overwrite
for /F "tokens=2-4 delims=/ " %%v in ('date /T') do (
set month=%%v
set day=%%w
set year=%%x)
"c:\Program Files\WinRAR\rar.exe" a TFS_BAK WORKSPACE_NAME s
ren "C:\Backup\TFS_BAK.RAR" "CUMULUS_%year%%month%%day%.RAR"
"C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\tf.exe" get /recursive /overwrite
for /F "tokens=2-4 delims=/ " %%v in ('date /T') do (
set month=%%v
set day=%%w
set year=%%x)
"c:\Program Files\WinRAR\rar.exe" a TFS_BAK WORKSPACE_NAME s
ren "C:\Backup\TFS_BAK.RAR" "CUMULUS_%year%%month%%day%.RAR"
Comments