<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Visual Source Safe Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/visual-source-safe/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/visual-source-safe/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:55:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>How to copy VSS project from one VSS database to another one without loosing history</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-copy-vss-project-from-one-vss-database-to-another-one-without-loosing-history/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-copy-vss-project-from-one-vss-database-to-another-one-without-loosing-history/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 06 Oct 2009 11:45:33 +0000</pubDate>
				<category><![CDATA[VSS]]></category>
		<category><![CDATA[Copy]]></category>
		<category><![CDATA[Copy from VSS database to another with history]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[History]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Instruction]]></category>
		<category><![CDATA[Loss]]></category>
		<category><![CDATA[project copy one VSS database to another one with history]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Visual Source Safe]]></category>
		<category><![CDATA[visual source safe Guide]]></category>
		<category><![CDATA[visual source safe tutorial]]></category>
		<category><![CDATA[VSS best practices]]></category>
		<category><![CDATA[VSS Database]]></category>
		<category><![CDATA[VSS database best practices]]></category>
		<category><![CDATA[VSS database copy with history]]></category>
		<category><![CDATA[VSS Project]]></category>
		<category><![CDATA[Without]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2009/10/06/how-to-copy-vss-project-from-one-vss-database-to-another-one-without-loosing-history/</guid>

					<description><![CDATA[<p>If you have any of the following questions in your mind, then this article is the perfect destination for you. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-copy-vss-project-from-one-vss-database-to-another-one-without-loosing-history/">How to copy VSS project from one VSS database to another one without loosing history</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4182" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/10/vss-project.png" alt="copy-vss-project-from-one-vss-database-to-another-one-without-loosing-history" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/10/vss-project.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/10/vss-project-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p><b>If you have any of the following questions in your mind, then this article is the perfect destination for you.</b></p>
<ul>
<li>How to copy VSS project from one VSS database to another one without loosing history</li>
<li>How to move VSS project from one location to another location</li>
<li>Moving Visual SourceSafe projects or databases to a new location?</li>
<li>Moving a project or projects from one database to another, while preserving the project&#8217;s history?</li>
</ul>
<p>The procedures within each scenario may vary depending on the version of Visual SourceSafe you are running.</p>
<p><b>APPLIES TO</b></p>
<p>Microsoft Visual SourceSafe 5.0 Standard Edition</p>
<p>Microsoft Visual SourceSafe 6.0 Standard Edition</p>
<p>NOTE: This process is for Visual SourceSafe 5.0 or greater only.</p>
<p><b>Requirement:</b></p>
<p>1.   Use the SSARC and SSRESTOR utilities included in Visual SourceSafe 5.0. With these utilities, you can archive projects, preserve their histories, and restore them to a new database.</p>
<p>2.   You must have SourceSafe Admin privileges to use these utilities</p>
<p>3.   In order to restore a project successfully your archive must include the latest versions all the files in the project. If you use the -v switch with SSARC to archive off earlier versions of your files, you will not be able to restore that archive to a different database because it needs the later versions.</p>
<p>4.   Because the physical file names get renamed when you restore a project to a new database, it may be necessary to reconnect projects that are integrated with Visual SourceSafe.</p>
<p><b>Warning:</b></p>
<p>1.   always be very careful when archiving and deleting files</p>
<p>2.   Backing up source files is like voting, do it early and often (warning, this may not be legal in your jurisdiction).</p>
<p>3.   Test your backups out before you actually need them, avoid permanent deletes and keep copies in multiple locations.</p>
<p><b> </b></p>
<p><b>There are two ways to Archive and Restore Project/Files from one database to another.</b></p>
<p><b>To Archive:</b></p>
<p>1.   Using To archive a database using Visual SourceSafe Administrator</p>
<p>2.   SSARC</p>
<p><b>Archival of a database allows you to:</b></p>
<p>* Save disk space on the Visual SourceSafe server or other machine hosting the database.<br />
* Make the Show History command work more quickly.<br />
* Transport files and projects between Visual SourceSafe databases, keeping history information intact.<br />
* Provide a compressed file backing up all or part of a database.</p>
<p><b>How to Archive Visual SourceSafe (VSS) Project?</b></p>
<p><b>Method1: Using Visual SourceSafe Administrator:</b></p>
<p>The Visual SourceSafe Administrator program allows you to archive your databases using the Archive Projects command, and to restore them from backup using the Restore Projects command.</p>
<p><b>To archive a database using Visual SourceSafe Administrator:</b></p>
<p>1. Ensure that no one is using the database and that the ANALYZE utility will not run during the archive operation.<br />
2. Open the database for which you want to archive information.<br />
3. On the Archive menu of Visual SourceSafe Administrator, click Archive Projects.<br />
4. In the Archive wizard, select the project(s) to archive, and click OK.<br />
5. If there are additional projects to be archived, indicate this in step 1 of the wizard, and click Next when finished.<br />
6. In step 2 of the wizard, specify how you want the project(s) to be archived, and click Next when finished. For each choice, you can use Browse to search for and select an archived file to overwrite the existing file.<br />
7. In step 3 of the wizard, specify the versions for the data to archive, using the Version box.<br />
8. Add a comment to the Comment box to document the archive operation.<br />
9. Click Finish to complete the wizard. The archive is written to a *.ssa file in the directory that you have specified.</p>
<p><b>Method2: Using SSARC: &#8211;</b></p>
<p>Another way of making an archive is to use the Visual SourceSafe SSARC utility from the command line.<br />
Examples</p>
<p>SSARC -d- -yadmin,password archive.ssa $/<br />
Backup the entire default Sourcesafe database to archive.ssa, leaving the database exactly as it is.</p>
<p>SSARC -d- &#8220;-vlProduction Release&#8221; -yadmin,password -olog.txt archive.ssa $/Test</p>
<p>Backup everything since the version labelled &#8216;Production Release&#8217; and create a log file with the results of the archiving process.</p>
<p>SSARC -d -x -yadmin,password archive.ssa &#8220;$/Project Global Domination&#8221; $/OtherProject</p>
<p>Description:  Archive, and delete the deleted files from two projects.</p>
<p>SSARC -i -yadmin,password -olog.txt &#8220;-cArchive Everything&#8221; archive.ssa $/</p>
<p>Description:  Archive the entire Sourcesafe database, while creating a log file, adding a comment, and running non-interactively, suitable for a scheduled task.<br />
To Restore Project/Files from one database to another.</p>
<p><b>To Restore:</b></p>
<p>1.   Using To archive a database using Visual SourceSafe Administrator</p>
<p>2.   SSRESTOR</p>
<p>&nbsp;</p>
<p><b>How to Restore Visual SourceSafe(VSS)Project?</b></p>
<p><b>Method 1: Using Visual SourceSafe Administrator</b></p>
<p>Visual SourceSafe Administrator supports restoration of a database from an archive using its Restore Projects command.</p>
<p><b>To restore a database using Visual SourceSafe Administrator</b></p>
<p>1. Make sure that no one is using the database and that the ANALYZE utility will not run during the restore operation.<br />
2. On the Archive menu of Visual SourceSafe Administrator, click Restore Projects.<br />
3. In the Restore wizard, enter or locate the archive file from which to restore, and then click Next.<br />
4. In step 2 of the wizard, you can choose the items to restore to the database, and click Next to proceed.<br />
5. Use step 3 of the wizard to specify options for restoring the selected items to the database.<br />
6. Add a comment to the Comment box to document the restore operation.<br />
7. Click Finish to complete the wizard.<br />
8. Verify the database directories carefully to make sure that the restore operation has put the restored items where you intended.</p>
<p><b>Method 2: Using SSRESTOR Utility</b></p>
<p>Restores information from a previously created archive. If the restore operation attempts to create a duplicate file or project name, the operation fails. Visual SourcSafe also implements restore operations through its Restore wizard, available in Visual SourceSafe Administrator.<br />
Examples</p>
<p>SSRESTOR -la -yadmin,password archive.ssa $/</p>
<p>Display a list of all of the files archived in archive.ssa.</p>
<p>SSRESTOR &#8220;-p$/Test 2&#8221; -sD:\newfolder\ -yadmin,password backup.ssa $/Test</p>
<p>Restores project $/Test to the database to a new location, $/Test 2, from the archive file backup.ssa, in a different Sourcesafe database.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-copy-vss-project-from-one-vss-database-to-another-one-without-loosing-history/">How to copy VSS project from one VSS database to another one without loosing history</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-copy-vss-project-from-one-vss-database-to-another-one-without-loosing-history/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SSARC Utility &#038; SSRESTOR Utility &#8211; Archive, Restore VSS Project &#8211; Guide</title>
		<link>https://www.scmgalaxy.com/tutorials/ssarc-utility-ssrestor-utility/</link>
					<comments>https://www.scmgalaxy.com/tutorials/ssarc-utility-ssrestor-utility/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 06 Oct 2009 11:41:40 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Archive VSS Project]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Instructions]]></category>
		<category><![CDATA[Process]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Restore VSS Project]]></category>
		<category><![CDATA[SSARC]]></category>
		<category><![CDATA[SSARC Tutorial]]></category>
		<category><![CDATA[SSARC Utility]]></category>
		<category><![CDATA[SSRESTOR]]></category>
		<category><![CDATA[SSRESTOR Tutorial]]></category>
		<category><![CDATA[SSRESTOR Utility]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Utility]]></category>
		<category><![CDATA[Visual Source Safe]]></category>
		<category><![CDATA[VSS]]></category>
		<category><![CDATA[VSS Project]]></category>
		<category><![CDATA[Ways]]></category>
		<category><![CDATA[What is SSARC Utility]]></category>
		<category><![CDATA[What is SSRESTOR Utility]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2009/10/06/ssarc-utility-ssrestor-utility/</guid>

					<description><![CDATA[<p>Question:  How to Archive VSS Project in Visual Source Safe (VSS)? How to Restore VSS Project in  Visual Source Safe [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ssarc-utility-ssrestor-utility/">SSARC Utility &#038; SSRESTOR Utility &#8211; Archive, Restore VSS Project &#8211; Guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="alignnone size-full wp-image-4067" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/10/ssarc-utility-ssrestor-util.png" alt="ssarc-utility-ssrestor-utility" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/10/ssarc-utility-ssrestor-util.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/10/ssarc-utility-ssrestor-util-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p class="MsoNormal"><b>Question:  </b></p>
<p class="MsoNormal"><b>How to Archive VSS Project in Visual Source Safe (VSS)?</b></p>
<p class="MsoNormal"><b>How to Restore VSS Project in  </b> <b>Visual Source Safe (VSS)?</b></p>
<p class="MsoNormal"><b>What is SSARC Utility?</b></p>
<p class="MsoNormal"><b>What is SSRESTOR Utility?</b></p>
<p class="MsoNormal">
<p class="MsoNormal"><b> <span style="font-size: 15pt; line-height: 115%; font-family: 'Arial','sans-serif'; color: black;"> SSARC Utility</span></b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Allows you to archive files, projects, or old versions from a Visual SourceSafe database. Each time you run SSARC (Ssarc.exe), the utility asks only once before it deletes the files/projects. Visual SourceSafe also implements archive operations through its Archive wizard, available in Visual SourceSafe Administrator.</span></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> The utility SSRESTOR is used for restoration of archived files. Use of SSARC and SSRESTOR together allows wide-area Visual SourceSafe installations to move files and projects among databases. </span></p>
<p class="MsoNormal"><span style="font-family: 'Verdana','sans-serif'; color: #333333;"> Limitation: </span> <span style="font-size: 8.5pt; line-height: 115%; font-family: 'Verdana','sans-serif'; color: black;"> SSARC cannot create an archive file that is greater than 2 GB. If you try to archive a project larger than this, you will receive an Out of Memory and/or a CRC mismatch error message. To work around this limitation, you will need to archive each subproject.</span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 115%; font-family: 'Verdana','sans-serif'; color: black;">  </span></b></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 115%; font-family: 'Verdana','sans-serif'; color: black;"> Syntax</span></b></p>
<p class="MsoNormal"><span style="color: black;">ssarc [-C][-D][-I-][-O][-S][-V][-X][-Y] &lt;archive file to create&gt; &lt;files/projects to archive&gt;</span></p>
<p class="MsoNormal">
<p class="MsoNormal">If you are not familiar with the syntax conventions used, <code> <span style="font-size: 10pt; line-height: 115%;"> &lt;</span></code> and <code> <span style="font-size: 10pt; line-height: 115%;"> &gt;</span></code> are used to delimit arguments. The &lt; and &gt; characters are not typed in. The <code> <span style="font-size: 10pt; line-height: 115%;"> |</span></code> means a choice of options. Items enclosed in square brackets, <code> <span style="font-size: 10pt; line-height: 115%;"> []</span></code> are optional, and items not enclosed in square brackets are mandatory.</p>
<p class="MsoNormal"><span style="color: black;"> </span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 115%; font-family: 'Verdana','sans-serif'; color: black;"> Utility Options</span></b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> The following table describes options available with SSARC.</span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> -C</span></b><b> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Specifies a comment (standard Visual SourceSafe parameter). The comment is inserted into the Visual SourceSafe history if the items are deleted from the database as part of the archived record. The comment is also inserted into the archive file itself, if there is one.</span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> -C-</span></b><b> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Specifies no comment.</span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> -D</span></b><b> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Deletes the archived items from the database.</span></p>
<p class="MsoNormal">Specifiying the -d option will delete from your project the items that you are archiving. This will delete your project from Sourcesafe if you use it! Of course, you can restore from your backup file, but for normal use, and for smaller projects I don&#8217;t recommend this. This function obviously has its uses, but be sure you want to do this.</p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> -D-</span></b><b> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Controls whether Visual SourceSafe actually deletes anything from the database. <b>If this option is not used,</b> the default is to ask.</span></p>
<p class="MsoNormal">If the -d- option is used, then SSARC will not delete the projects the items you are archiving. The default is to prompt the user interactively, so if you want to run this from a script, you will need to choose one of the options, or use the -i- flag</p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> -I-</span></b><b> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Specifies no prompt for input (standard Visual SourceSafe parameter).</span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> -O</span></b><b> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Paginates or redirects output (standard Visual SourceSafe parameter).</span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> -S&lt;srcsafe.ini path&gt;, &lt;data path&gt;</span> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Specifies a path to Srcsafe.ini and the Data directory. The full syntax looks like -Sc: \VSS, OldDB. The item before the comma is the full path to Srcsafe.ini, and the item after the comma is the string in parentheses in a Data_Path setting. If there is no comma, a Srcsafe.ini path is indicated, but no data string. If the first character after the –S is a comma, a data string is specified, but no Srcsafe.ini path. </span></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;">  </span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> -V[D|L]&lt;version&gt;</span> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Specifies a version number to archive (standard Visual SourceSafe parameter). Enter the version number in standard Visual SourceSafe format (number, date, or label). If this option is not used, SSARC operates on entire files or projects, instead of all versions up to and including a certain version.</span></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Note that SSARC is generally inclusive. That is, if you type –V9, you create an archive file that contains version 9.0 and everything before it. The delete pass is also inclusive, that is, version 9.0 is actually deleted unless it is in the label format. In the latter case, the label is stored in the archive file but is not deleted. If –V is specified, you never delete the current version, even if you specify -D9/9/99. If you are using a version the label format, and the label has a space in it, you must place the entire option in quotation marks, for example, &#8220;-VThisOne&#8221;.</span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> -X</span></b><b> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Archives only deleted items in the specified files and projects. Deleted items are still stored in the Visual SourceSafe database unless the <b>Destroy Permanently</b> option is selected when performing a <b>Delete</b> command. </span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> -X-</span></b><b> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Archives all items in the specified files and projects. </span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> -Y&lt;user&gt;,&lt;pwd&gt;</span> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Specifies the user name and password (standard Visual SourceSafe parameter). An example is -YAdmin,Bunny.</span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> archive file to create</span> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Specifies the name of the archive file to create during the archive operation.</span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> files/projects to archive</span> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Specifies files and projects to back up.</span></p>
<h3>Examples</h3>
<dl>
<dt><code>SSARC -d- -yadmin,password archive.ssa $/</code></dt>
<dd>Backup the entire default Sourcesafe database to archive.ssa, leaving the database exactly as it is.</dd>
<dt><code>SSARC -d- "-vlProduction Release" -yadmin,password -olog.txt  	archive.ssa $/Test</code></dt>
<dd>Backup everything since the version labelled &#8216;Production Release&#8217; and create a log file with the results of the archiving process.</dd>
<dt><code>SSARC -d -x -yadmin,password archive.ssa "$/Project Global  	Domination" $/OtherProject</code></dt>
<dd>Archive, and delete the deleted files from two projects.</dd>
<dt><code>SSARC -i -yadmin,password -olog.txt "-cArchive Everything"  	archive.ssa $/</code></dt>
<dd>Archive the entire Sourcesafe database, while creating a log file, adding a comment, and running non-interactively, suitable for a scheduled task.</dd>
</dl>
<p class="MsoNormal">
<p class="MsoNormal"><b> <span style="font-size: 15pt; line-height: 115%; font-family: 'Arial','sans-serif'; color: black;"> SSRESTOR Utility</span></b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Restores information from a previously created archive. If the restore operation attempts to create a duplicate file or project name, the operation fails. Visual SourcSafe also implements restore operations through its Restore wizard, available in Visual SourceSafe Administrator.</span></p>
<p class="MsoNormal"><span style="font-family: 'Verdana','sans-serif'; color: #333333;"> Limitation: </span> <span style="font-size: 8.5pt; line-height: 115%; font-family: 'Verdana','sans-serif'; color: black;"> SSRESTOR cannot restore a project that is larger than 2 GB. A project larger than this cannot be archived.</span></p>
<p class="MsoNormal"><span style="font-family: 'Verdana','sans-serif'; color: #333333;">  </span></p>
<p class="MsoNormal"><span style="font-family: 'Verdana','sans-serif'; color: #333333;"> Syntax: </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 140%; font-family: 'Courier New'; color: black;"> ssrestor [-C][-I-][-L][-O][-P&lt;project&gt;][-S][-T][-X][-Y]</span></p>
<p class="MsoNormal"><span style="font-size: 12pt; line-height: 115%; font-family: 'Times New Roman','serif'; color: black;"> &lt;archive file to restore&gt; [files/projects]</span></p>
<p class="MsoNormal"><span style="font-size: 12pt; line-height: 115%; font-family: 'Times New Roman','serif'; color: black;">  </span></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Utility Options </span></p>
<p class="MsoNormal"><a class="mceItemAnchor" name="sectionToggle1"></a> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> The following table describes options available with this command.</span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> -C</span></b><b> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Specifies a comment (standard Visual SourceSafe parameter). The comment is applied to the history entry for restored item(s).</span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> -C-</span></b><b> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Specifies no comment.</span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> -I-</span></b><b> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Specifies no input (standard Visual SourceSafe parameter).</span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> -L</span></b><b> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Specifies a list only, without any restoration. </span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> -LA</span></b><b> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Specifies a list of all files and subprojects listed under a project, for example, project $/A.</span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> -O</span></b><b> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Redirects output (standard Visual SourceSafe parameter).</span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> -P&lt;project&gt;</span></b><b> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Specifies a project to which to restore content. For instance, if you archive $/A/BAR.C and then restore it, it will be restored as $/A/BAR.C.</span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> -S&lt;srcsafe.ini path&gt;&lt;data path&gt;</span> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Specifies a path to Srcsafe.ini and the Data directory.</span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> -T</span></b><b> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Tests the archive file for corruption, but does not actually restore from the archive. </span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> -X, -X-</span></b><b> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Identifies an item that you want to restore, for example, $/a/b. This option distinguishes between deleted projects and undeleted projects that have the same names. For example, if you have deleted $a/b and specify the -X option, SSRESTOR restores the deleted $/a/b. If you specify -X-, SSRESTOR restores an undeleted $/a/b. Even though they have the same name, note that these are two different projects that the utility treats differently.</span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> -Y&lt;user&gt;,&lt;pwd&gt;</span> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Specifies user name and password (standard Visual SourceSafe parameter). An example is -YAdmin,Moggy.</span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> archive file to restore</span> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Specifies the name of the archive file from which to restore the database.</span></p>
<p class="MsoNormal"><b> <span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> files/projects</span></b><b> </b></p>
<p class="MsoNormal"><span style="font-size: 8pt; line-height: 140%; font-family: 'Verdana','sans-serif'; color: black;"> Specifies files and projects to restore.</span></p>
<h3>Examples</h3>
<dl>
<dt><code>SSRESTOR -la -yadmin,password archive.ssa $/</code></dt>
<dd>Display a list of all of the files archived in archive.ssa.</dd>
<dt><code>SSRESTOR "-p$/Test 2" -sD:\newfolder\ -yadmin,password backup.ssa  	$/Test</code></dt>
<dd>Restores project $/Test to the database to a new location, $/Test 2, from the archive file backup.ssa, in a different Sourcesafe database.</dd>
</dl>
<h2>Miscellaneous tips</h2>
<ul>
<li>Putting the path to the &lt;VSS PATH&gt;\win32 folder in your PATH environment variable makes shell commands a lot easier</li>
<li>If you get a message &#8220;Only ADMIN can run this utility&#8221;, it means that you are either not specifying the admin account, or the password is incorrect. Use <code>"-yadmin,password"</code> if the admin password is &#8220;password&#8221;, or <code>"-yadmin,"</code> if the admin password is not set (not recommended!).</li>
<li>If you are using an option that has a space in the argument, enclose the whole thing with quote marks, i.e. &#8220;-p$/Project A&#8221;</li>
<li>A daily archive is easy to do with a Windows shell script, maybe something like this. Then use Scheduled Tasks to have this run every day.<br />
<blockquote>
<pre>function q (str)
	' to make the command a bit more readable, I hope
	q = """" &amp; str &amp; """"
end function</pre>
<p>PROJECT = &#8220;$/&#8221;<br />
USERID = &#8220;admin&#8221;<br />
PASSWORD = &#8220;admin&#8221;</p>
<p>&#8216; location of SSARC program<br />
SSARCPATH = &#8220;C:\program files\microsoft visual studio\common\vss\win32\ssarc.exe&#8221;<br />
&#8216; folder of srcsafe.ini<br />
SRCSAFEINIPATH = &#8220;&#8221;<br />
&#8216; prepended to filename in case you&#8217;re doing more than one.<br />
LABEL = &#8220;ARCHIVE&#8221;<br />
&#8216; destination of archive files<br />
BACKUPFOLDER = &#8220;C:\BACKUPS\&#8221;</p>
<p>&#8216; generate a name based on the time.<br />
today = now()<br />
backupfilename = LABEL &amp; &#8220;-&#8221; &amp; formatdatetime(now,2) &amp; &#8220;.ssa&#8221;</p>
<p>cmd = q(SSARCPATH) &amp; &#8221; &#8221; &amp; _<br />
q(&#8220;-s&#8221; &amp; SRCSAFEINIPATH &amp; &#8220;,&#8221;) &amp; &#8221; -i- &#8221; &amp; &#8221; -d- &#8221; &amp; _<br />
q(&#8220;-y&#8221; &amp; USERID &amp; &#8220;,&#8221; &amp; PASSWORD) &amp; &#8221; &#8221; &amp; _<br />
q(BACKUPFOLDER &amp; backupfilename) &amp; &#8221; &#8221; &amp; q(PROJECT)</p>
<p>Set WshShell = WScript.CreateObject(&#8220;WScript.Shell&#8221;)<br />
wscript.echo cmd<br />
WshShell.run cmd<br />
set wsshell = nothing</p></blockquote>
</li>
</ul>
<p class="MsoNormal">
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ssarc-utility-ssrestor-utility/">SSARC Utility &#038; SSRESTOR Utility &#8211; Archive, Restore VSS Project &#8211; Guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/ssarc-utility-ssrestor-utility/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
