tags:

views:

1278

answers:

1

Hello,

I'm evaluating Team Foundation Server 2010.

I would like to know if there is some command line to backup my TFS data. I currently have a folder sent to the cloud. This backup contains all the data I need to back up (like MySql databases, word documents, ...)

What I want is a way to automatically backup my TFS collections (and any other important TFS data) in one (or more) file in this directory.

A command line would be perfect.

Many thanks

Julien

+2  A: 

The TFS documentation online covers this.

If you are using full SQL Server you can use SQL Server Agent to schedule database backups, otherwise use Windows task scheduler (via one of the SQL command line tools). But you do need to write the SQL script to do the backing up, this is explained in some detail in the documentation linked above.

(There is no simple command line because simple installations have different needs to complex ones, e.g. on a large instance backups can take many hours and issues of synchronisation of the backups becomes complex.)

Additional [edit 2010-08-24] the next TFS PowerToys have been announced to include backup and recovery tools (targeted for non-large scale TFS setups). See the blog post: "Backing up and Restoring your TFS Server"

Richard
you can use command line to run a backup...: http://stackoverflow.com/questions/122690/what-is-a-simple-command-line-program-or-script-to-backup-sql-server-databases
Mitch Wheat
+1 - Never knew about this, great tools
Roopesh Shenoy