<?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>Restore Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/restore/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/restore/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:50:36 +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 backup and restore Gerrit server?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-backup-and-restore-gerrit-server/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-backup-and-restore-gerrit-server/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sun, 19 Aug 2018 19:34:09 +0000</pubDate>
				<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Restore]]></category>
		<category><![CDATA[server]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5156</guid>

					<description><![CDATA[<p>How to backup and restore gerrit server? There are 3 coponent which should be backed up in gerrit Repository &#8211; [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-backup-and-restore-gerrit-server/">How to backup and restore Gerrit server?</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-5188" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-server.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-server.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-server-300x175.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p><strong>How to backup and restore gerrit server?</strong></p>
<p>There are 3 coponent which should be backed up in gerrit</p>
<ol>
<li>Repository &#8211; According to me best way to backup the repository is to setup a replication with other gerrit hosting tools using gerrit replication plugins. The steps can be find as below;</li>
<li>Gerrit Database<br />
Depends on the database, you should take the database backup. It can be H2 or mysql&#8230;.</li>
<li>Gerrit Config<br />
Rysnc is the best tools to take the entire gerrit site backup.</li>
</ol>
<p><strong>How to replicate Gerrit repository using replication plugins?</strong></p>
<p><strong>Step 1- Setup Gerrit Server</strong><br />
http://www.devopsschool.com/tutorial/gerrit/gerrit-install-and-configuration.html</p>
<p><strong>Step 2 &#8211; Create a Project in Gerrit</strong></p>
<p><strong>Step 3 &#8211; Setup a Developement Machine</strong><br />
git clone http://admin@35.154.81.167:8080/a/prj1 &amp;&amp; (cd prj1 &amp;&amp; curl -kLo `git rev-parse &#8211;git-dir`/hooks/commit-msg http://admin@35.154.81.167:8080/tools/hooks/commit-msg; chmod +x `git rev-parse &#8211;git-dir`/hooks/commit-msg)</p>
<p><strong>Step 4: Sample Commits to be done</strong><br />
&gt; touch file1.txt;git add .;git commit -m&#8221;adding first version&#8221;</p>
<p><strong>Step 5: Sample push and submit it</strong><br />
&gt; git push origin HEAD:refs/for/master</p>
<p><strong>Step 6: create it $site_path/etc/replication.config</strong></p>
<p>Content of the files is &#8211;<br />
[remote &#8220;github&#8221;]<br />
url = git@github.com:scmgalaxy/${name}.git</p>
<p>Within each URL value the magic placeholder `${name}` is replaced with the Gerrit project name.</p>
<p><strong>Step 7: Generate a public/private key</strong></p>
<p>&gt; ssh-keygen -t rsa</p>
<p><strong>Step 8: create a &#8220;config&#8221; under /root/.ssh</strong></p>
<p>Host github.com<br />
User git<br />
IdentityFile /root/.ssh/id_rsa<br />
StrictHostKeyChecking no<br />
UserKnownHostsFile /dev/null</p>
<p><strong>Step 9: Update the public key to github</strong></p>
<p><strong>Step 10: Create a repo in Github.com with same name.</strong></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-backup-and-restore-gerrit-server/">How to backup and restore Gerrit server?</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-backup-and-restore-gerrit-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SonarQube Upgrade, Backup and Restore Process &#124; SonarQube Tutorial</title>
		<link>https://www.scmgalaxy.com/tutorials/sonarqube-upgrade-backup-and-restore-process/</link>
					<comments>https://www.scmgalaxy.com/tutorials/sonarqube-upgrade-backup-and-restore-process/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 28 Jul 2017 20:29:57 +0000</pubDate>
				<category><![CDATA[SonarQube]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[Process]]></category>
		<category><![CDATA[Restore]]></category>
		<category><![CDATA[SonarQube Guide]]></category>
		<category><![CDATA[SonarQube tutorial]]></category>
		<category><![CDATA[Upgrade]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2017/07/28/sonarqube-upgrade-backup-and-restore-process/</guid>

					<description><![CDATA[<h3>SonarQube Upgrade, Backup and Restore Process</h3>
<div>Today I will share the steps to upgrade from the SonarQube version 5.X to SonarQube version 6.X. We have upgrade guide which can be found http://docs.sonarqube.org/display/SONAR/Upgrading but its not complete guide thus I am sharing the steps as follows which can be followed for the production server as well.  As practice shared on the oficial guide that before upgrading to the next major release, you must upgrade to know LTS e.g</div>
<div></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/sonarqube-upgrade-backup-and-restore-process/">SonarQube Upgrade, Backup and Restore Process | SonarQube Tutorial</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3><img decoding="async" class="size-full wp-image-2789 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/07/sonarqube-upgrade-backup-an.png" alt="sonarqube-upgrade-backup-and-restore-process" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/07/sonarqube-upgrade-backup-an.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/07/sonarqube-upgrade-backup-an-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></h3>
<p>&nbsp;</p>
<h3>SonarQube Upgrade, Backup and Restore Process</h3>
<p>&nbsp;</p>
<div>Today I will share the steps to upgrade from the SonarQube version 5.X to SonarQube version 6.X. We have upgrade guide which can be found <a href="http://docs.sonarqube.org/display/SONAR/" target="_blank" rel="noopener">http://docs.sonarqube.org/display/SONAR/</a>Upgrading but its not complete guide thus I am sharing the steps as follows which can be followed for the production server as well.  As practice shared on the oficial guide that before upgrading to the next major release, you must upgrade to know LTS e.g</div>
<div></div>
<div>Example 1 : 4.2 -&gt; 6.1, migration path is 4.2 -&gt; 4.5.7 LTS -&gt; 5.6 LTS -&gt; 6.1</div>
<div>Example 2 : 5.1 -&gt; 5.6, migration path is 5.1 -&gt; 5.6</div>
<p>&nbsp;</p>
<div></div>
<div>Upgrading across multiple versions is handled automatically. However, if in your migration path you have an LTS version, you must first migrate to this LTS and then migrate to your target version.</div>
<p>&nbsp;</p>
<div></div>
<div>Remember that SonarQube upgrade procedure does not have a rollback procedure, so it is mandatory that you take a full backup of the system before performing the upgrade.</div>
<p>&nbsp;</p>
<div></div>
<h3>Process 1: Steps to Take a Full Backup of SonarQube Server?</h3>
<div><strong>Step 1 &#8211; Stop the production server</strong></div>
<div>Windows</div>
<div>%SONARQUBE_HOME%/bin/windows-x86-32/StopNTService.bat</div>
<div>Linux</div>
<div>$SONAR_HOME/bin/linux-x86-64/sonar.sh stop</div>
<div></div>
<div><strong>Step 2 &#8211; Backup the production database e.g mysql db</strong></div>
<div>&gt; mysqldump &#8211;opt -Q -h localhost -u username&#8211;password=&#8217;password&#8217; databasename | gzip -9 &gt; databasename.gz</div>
<div>Also, there is one tool which has been available to take the backup of database.</div>
<div><a href="https://docs.sonarqube.org/display/SONAR/Sonar+DB+Copy+Tool" target="_blank" rel="noopener">https://docs.sonarqube.org/display/SONAR/Sonar+DB+Copy+Tool</a></div>
<div></div>
<div><strong>Step 3 &#8211; Backup the $SONAR_HOME directory</strong></div>
<div>&gt; zip -r Sonar_home.zip $SONAR_HOME</div>
<div></div>
<div><strong>Step 4 &#8211; List of plugins installed</strong></div>
<div>Be mindful that $SONAR_HOME/extensions/plugins directory where you can get the list of plugins installed.</div>
<div></div>
<div><strong>Step 5 &#8211; List of custom coding rules installed</strong></div>
<div>Be mindful that $SONAR_HOME/extensions/rules directory where you can get the list of custom coding rules.</div>
<div></div>
<div><strong>Step 6 &#8211; List of configurations used</strong></div>
<div>Be mindful that $SONAR_HOME/config directory where you can get sonar.properties and wrapper.conf file which has all the current configurations and setup.</div>
<div></div>
<div><strong>Step 7 &#8211; Re-start the production server</strong></div>
<div>Windows</div>
<div>%SONARQUBE_HOME%/bin/windows-x86-32/StartSonar.bat</div>
<div>Linux</div>
<div>$SONAR_HOME/bin/linux-x86-64/sonar.sh start</div>
<div></div>
<div><strong>Step 8: Keep the Sonar_home.zip and databasename.gz to the safe location.</strong></div>
<div></div>
<div></div>
<p>&nbsp;</p>
<h3>Process 2: SonarQube server Upgrade process.</h3>
<div>Following are the steps to be followed to upgrade the SonarQube server.</div>
<div></div>
<div><strong>Step 1: Stop your old SonarQube Server.</strong></div>
<div></div>
<div><strong>Step 2: <span style="font-size: 12.16px;">Install/Configure a most latest version of SonarQube </span></strong><br />
Install/Configure a most latest version of SonarQube Server in another location. The instructions is shared here (<a href="https://docs.sonarqube.org/display/SONAR/Installing+the+Server" target="_blank" rel="noopener">https://docs.sonarqube.org/display/SONAR/Installing+the+Server</a>)</div>
<div></div>
<div><strong>Step 3: Install the your required plugins/extensions compatib</strong>le with your version of SonarQube. The Instructions is shared here.(<a href="https://docs.sonarqube.org/display/SONAR/Installing+a+Plugin" target="_blank" rel="noopener">https://docs.sonarqube.org/display/SONAR/Installing+a+Plugin</a>)</div>
<div></div>
<div><strong>Step 4: Update the contents of sonar.properties and wrapper.conf files</strong> (in NEW_SONARQUBE_HOME/conf) with the settings of the related files in the OLD_SONARQUBE_HOME/conf directory (web server URL, database, ldap settings, etc.). Do not copy-paste the old files.</div>
<div>If you are using the Oracle DB, copy its JDBC driver into NEW_SONARQUBE_HOME/extensions/jdbc-driver/oracle</div>
<div></div>
<div><strong>Step 5: Start your new SonarQube Server</strong></div>
<div>Windows</div>
<div>%SONARQUBE_HOME%/bin/windows-x86-32/StartSonar.bat</div>
<div>Linux</div>
<div>$SONAR_HOME/bin/linux-x86-64/sonar.sh start</div>
<div></div>
<div><strong>Step 6: Browse to <a href="http://blog.majcica.com/2016/11/01/upgrading-sonarqube-to-a-newer-version/" target="_blank" rel="noopener">http://yourSonarQubeServerURL/setup and follow the setup instructions</a></strong></div>
<div></div>
<div><strong>Step 7: Verify the SonarQube Upgrade.</strong></div>
<p>&nbsp;</p>
<div></div>
<div><strong>Note &#8211; SonarQube as a Linux or Windows Service</strong></div>
<div>If you use external configuration, such as a script or Windows Service to control your server, you&#8217;ll need to update it to point to NEW_SONARQUBE_HOME.</div>
<div>In case you used the InstallNTService.bat to install SonarQube as a Windows Service, run the OLD_SONARQUBE_HOME/bin/&#8230;/UninstallNTService.bat before running the InstallNTService.bat of the NEW_SONARQUBE_HOME.</div>
<div></div>
<div>If you install SonarQube with Sql Server, it is better to chose Latin1_General_CS_AS as collation to avoid problems.</div>
<div></div>
<p>&nbsp;</p>
<div><strong>Some Well known Troubleshooting after upgrades.</strong></div>
<div>Issues &#8211; Sonarqube upgrade 5.6 to 6.1, test coverage measue is missing</div>
<div>Solution &#8211; You might be missing the sonar.java.binaries. Sonar-5.6 did not need those.</div>
<div></div>
<div>Issues &#8211; Some unknown issues</div>
<div>Solution &#8211; Whenever you have problem with SonarQube do not forget to read the log, because only in the log you can understand the real cause of errors.</div>
<div></div>
<p>&nbsp;</p>
<div><strong>Reference</strong></div>
<div><a href="https://docs.sonarqube.org/display/SONAR/Upgrading" target="_blank" rel="noopener">https://docs.sonarqube.org/display/SONAR/Upgrading</a></div>
<div><a href="http://blog.majcica.com/2016/11/01/upgrading-sonarqube-to-a-newer-version/" target="_blank" rel="noopener">http://blog.majcica.com/2016/11/01/upgrading-sonarqube-to-a-newer-version/</a></div>
<div><a href="http://www.codewrecks.com/blog/index.php/2016/08/11/upgrading-sonarqube-from-5-1-to-6-0/" target="_blank" rel="noopener">http://www.codewrecks.com/blog/index.php/2016/08/11/upgrading-sonarqube-from-5-1-to-6-0/</a></div>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/sonarqube-upgrade-backup-and-restore-process/">SonarQube Upgrade, Backup and Restore Process | SonarQube Tutorial</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/sonarqube-upgrade-backup-and-restore-process/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Jenkins Backup and Restore Process &#124; Jenkins Tutorial</title>
		<link>https://www.scmgalaxy.com/tutorials/jenkins-backup-and-restore-process/</link>
					<comments>https://www.scmgalaxy.com/tutorials/jenkins-backup-and-restore-process/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sun, 20 Sep 2015 10:34:04 +0000</pubDate>
				<category><![CDATA[Jenkins]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[How to Backup Jenkins]]></category>
		<category><![CDATA[How to Restore Jenkins]]></category>
		<category><![CDATA[Jenkins Backup]]></category>
		<category><![CDATA[Jenkins Backup Process]]></category>
		<category><![CDATA[Jenkins Backup Tutorial]]></category>
		<category><![CDATA[Jenkins Process]]></category>
		<category><![CDATA[Jenkins Restore]]></category>
		<category><![CDATA[Jenkins Restore Tutorial]]></category>
		<category><![CDATA[Jenkins Tutorial]]></category>
		<category><![CDATA[Process]]></category>
		<category><![CDATA[Restore]]></category>
		<category><![CDATA[Steps]]></category>
		<category><![CDATA[Tutorials]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2015/09/20/jenkins-backup-and-restore-process/</guid>

					<description><![CDATA[<p>How Do I Backup Jenkins Jobs using Grunt? Backup Jenkins configuration to S3 bash-backup-script for jenkins‘ job-configs via user-crontab Backup [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/jenkins-backup-and-restore-process/">Jenkins Backup and Restore Process | Jenkins Tutorial</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3><img decoding="async" class="alignnone size-full wp-image-3353 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/09/jenkins-backup-and-restore-.png" alt="jenkins-backup-and-restore-process" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/09/jenkins-backup-and-restore-.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/09/jenkins-backup-and-restore--300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></h3>
<h3><a href="https://www.sghill.net/how-do-i-backup-jenkins-jobs.html" target="_blank" rel="noopener">How Do I Backup Jenkins Jobs using Grunt?</a></h3>
<h3><a href="http://www.clausconrad.com/blog/backup-jenkins-configuration-to-s3" target="_blank" rel="noopener">Backup Jenkins configuration to S3</a></h3>
<h3><a href="http://christoph-burmeister.eu/?p=1981" target="_blank" rel="noopener">bash-backup-script for jenkins‘ job-configs via user-crontab</a></h3>
<h3><a href="http://softwaretester.info/backup-and-restore-jenkins/" target="_blank" rel="noopener">Backup and restore Jenkins using jenkins plugins</a></h3>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/jenkins-backup-and-restore-process/">Jenkins Backup and Restore Process | Jenkins Tutorial</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/jenkins-backup-and-restore-process/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
