Do you use Clearcase for source code control? If so, you likely have a lot of work in your snapshot view that is not backed up. So, if your hard drive fails or your PC is stolen, you would lose a lot of work.
Here is a little script for Windows that I run at the end of each day that will copy all checked-out files to a location of your choice.
c:
cd snapshotViewFolder
del networkLocation\*.*
FOR /F "usebackQ" %%i in (`cleartool lsc -short -cview -me -r`) do copy %%i "networkLocation"
create a .bat file with these commands. then run it. all files checked out in the folder = snapshotViewFolder will be copied to networkLocation.
In practice, I put this batch file in c:\windows\system32, and append the following command at the end of it.
shutdown -s -t 10
then, at the end of the day, I just run the batch file from the run-command window.
If you want to run the FOR command directly from the command line, replace each %% with just one %.
No comments:
Post a Comment