Search This Blog

Wednesday, July 02, 2008

Shelveset as a Backup

Long time since I posted. Been busy (implementing TFS), long vacation and a new work place.
In the last implementation I did I have noticed that in some cases users work in a network drive that is always backed up by IT. This is a good solution for backing up your workspace without checking in your pending changes (like we used to do when we worked with SourceSafe...) or performing a shelve for backup purpose. I thought it would be nice to share the idea of automatic backup shelves with those of you that work locally without any automatic backup. When you shelve your pending changes the shelve is saved in PendingChange table. The pending changes will be removed from the table when you delete or replace the shelveset. So to perform an automatic backup of your workspace that does not overload your TFS database you can add a schedule task that will run the following command:
tf shelve {workspace name} /replace /noprompt
Remeber to set the current folder to the workspace local path before executing the command.
Enjoy.

4 comments:

Anonymous said...

You create a very interesting concept that our company has been working on for some while. The suggestion of adding "intelligence" during retention and specifically in the realm of the value to creator of that content (in this case, code) wonders whether a service providing ceritification and assurance of that code would be of value. Simply - you want to retain it. Ideally do not want the cost overhead to manage it, but at some point, know that you or someone is going to need it, what do you do? I know the folks at iForem are working on this. They set up an automated SW / Source Code / IP Escrow Service that is completely online to demonstrate the legal and financial framework necessary for such a system.

washington DC new homes said...

I know the folks at iForem are working on this. They set up an automated SW / Source Code / IP Escrow Service that is completely online to demonstrate the legal and financial framework necessary for such a system.

digital signature PDF said...

I also agree that this is good idea of keeping the backup of everything what you are working on local computer. Either we made the proper changes or not but we must kept the backup of everything for security issue..It is one of necessary step.

Anonymous said...

There's an app for that ... TFS Auto Shelve