<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>
<div>This is a good strategy if you have no modifications to core files (e.g. new plugins in the lib or perl_lib directories). &nbsp;Bazaar packages also install above the local repository directory.</div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE">
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;"><o:p>&nbsp;</o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="font-family: Calibri;">
<tbody>
<tr>
<td valign="top" style="border-style: solid none none; border-top-color: rgb(44, 56, 65); border-top-width: 1pt; padding: 0cm 0cm 3pt;">
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<a href="http://www.jisc.ac.uk/" style="color: rgb(149, 79, 114);"><span style="font-size: 12pt; font-family: 'Times New Roman', serif; color: blue; text-decoration: none;"><img border="0" width="60" height="35" id="Picture_x0020_1" src="cid:5EEA6811-AC6B-475C-85EB-650E70DA3615" alt="Jisc" type="image/png"></span></a><span style="font-size: 12pt; font-family: 'Times New Roman', serif;"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td valign="top" style="padding: 7.5pt 0cm 0cm;">
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<b><span style="font-size: 12pt; font-family: Corbel, sans-serif; color: rgb(44, 56, 65);">Adam Field</span></b><span style="font-size: 12pt; font-family: 'Times New Roman', serif;"><br>
</span><span style="font-size: 12pt; font-family: Corbel, sans-serif; color: rgb(44, 56, 65);">SHERPA services analyst developer</span></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:12pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>&lt;<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">eprints-tech-bounces@ecs.soton.ac.uk</a>&gt; on behalf of alen vodopijevec &lt;<a href="mailto:alen@irb.hr">alen@irb.hr</a>&gt;<br>
<span style="font-weight:bold">Reply-To: </span>&quot;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>&quot; &lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Wednesday, 27 April 2016 11:42<br>
<span style="font-weight:bold">To: </span>&quot;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>&quot; &lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>Re: [EP-tech] Copy live EPrints to staging server<br>
</div>
<div><br>
</div>
<span style="mso-bookmark:_MailOriginalBody">
<div>
<div>
<div>Hi!</div>
<div><br>
</div>
<div>Well, I assume that you don't need fresh data all the time, so database </div>
<div>could be imported once, and occasionally re-imported.</div>
<div><br>
</div>
<div>We have git initialized in ~/archives/ARCHIVE_NAME/ directory</div>
<div><br>
</div>
<div>In .gitignore</div>
<div>--</div>
<div>var/</div>
<div>documents/</div>
<div>html/</div>
<div>cfg/cfg.d/10_core.pl</div>
<div>cfg/cfg.d/20_baseurls.pl</div>
<div>cfg/cfg.d/database.pl</div>
<div><br>
</div>
<div><br>
</div>
<div>And those cfg.d files copied eg. 10_core.pl.dist etc..</div>
<div><br>
</div>
<div>So we can keep different environments for dev and prod.</div>
<div><br>
</div>
<div>Also, there is a central repository (bitbucket) and we are pushing and </div>
<div>pulling :)</div>
<div><br>
</div>
<div>We are still testing it so if someone has a tip please comment :)</div>
<div><br>
</div>
<div>Best,</div>
<div>-- </div>
<div>Alen Vodopijevec</div>
<div><br>
</div>
<div>Odsjek za informacijske tehnologije</div>
<div>Centar za znanstvene informacije</div>
<div>Institut Ruđer Bošković</div>
<div>------------------------------------------------</div>
<div>IT Section</div>
<div>Centre for Scientific Information</div>
<div>Rudjer Boskovic Institute</div>
<div>------------------------------------------------</div>
<div>Addr: Bijenicka cesta 54, Zagreb, HR</div>
<div>Email: <a href="mailto:alen@irb.hr">alen@irb.hr</a></div>
<div>Web: www.lib.irb.hr | www.irb.hr</div>
<div>Tel: &#43; 385 1 4560 929, x1243</div>
<div>Mob: &#43; 385 98 584 045</div>
<div><br>
</div>
<div>Skype: vodopijevec</div>
<div>GTalk: alen.vodopijevec</div>
<div><br>
</div>
<div><br>
</div>
<div>On 04/27/2016 12:21 PM, Andrew Beeken wrote:</div>
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>Okay, so I can get as far as step 7 – now, I’m running this from the</div>
<div>development tree (that I copied from live), rather than the installed</div>
<div>tree. Is this right? Likewise, I presume I need to change the 10_core</div>
<div>file in the development tree?</div>
<div><br>
</div>
<div>*From:<a href="mailto:*eprints-tech-bounces@ecs.soton.ac.uk">*eprints-tech-bounces@ecs.soton.ac.uk</a></div>
<div>[<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">mailto:eprints-tech-bounces@ecs.soton.ac.uk</a>] *On Behalf Of *Andrew Beeken</div>
<div>*Sent:* 25 April 2016 14:20</div>
<div>*To:* <a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a></div>
<div>*Subject:* Re: [EP-tech] Copy live EPrints to staging server</div>
<div><br>
</div>
<div>Thanks Adam – step 11 is pretty much why I’m doing this JI did have a</div>
<div>dev build on an old Macbook but the VM wouldn’t restore itself on my new</div>
<div>Windows machine so, starting from scratch! (yay!)</div>
<div><br>
</div>
<div>*From:<a href="mailto:*eprints-tech-bounces@ecs.soton.ac.uk">*eprints-tech-bounces@ecs.soton.ac.uk</a></div>
<div>&lt;<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">mailto:eprints-tech-bounces@ecs.soton.ac.uk</a>&gt;</div>
<div>[<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">mailto:eprints-tech-bounces@ecs.soton.ac.uk</a>] *On Behalf Of *Adam Field</div>
<div>*Sent:* 25 April 2016 13:43</div>
<div>*To:* <a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a> &lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk">mailto:eprints-tech@ecs.soton.ac.uk</a>&gt;</div>
<div>*Subject:* Re: [EP-tech] Copy live EPrints to staging server</div>
<div><br>
</div>
<div>1) install a fresh copy of EPrints and configure it to work on the dev</div>
<div>server (to make sure all prerequisites are ship-shape).&nbsp;&nbsp;It'll make</div>
<div>things simpler if you use the same database name, username and password</div>
<div>as the live repository.&nbsp;&nbsp;Test that you can raise it in a browser, log</div>
<div>in, create a record, etc.&nbsp;&nbsp;There's a training video for this.</div>
<div><br>
</div>
<div>2) Dump the live database into the EPrint tree somewhere (perhaps</div>
<div>&lt;eprints_root&gt;/archives/&lt;foo&gt;/db_dump/&lt;timestamped_filename&gt;.mysqldump)</div>
<div><br>
</div>
<div>3) Create an tarball of the EPrints tree (tar cvzf</div>
<div>live_eprints&lt;datestamp&gt;.tar.gz &lt;eprints_root&gt;)</div>
<div><br>
</div>
<div>4) Copy the tarball to dev</div>
<div><br>
</div>
<div>5) tar xvzf the file to somewhere appropriate, check file permissions</div>
<div>for the apache user on dev</div>
<div><br>
</div>
<div>6) undump the database dump (cat filename | mysql -u username -p) --</div>
<div>easy if you have used the same username and password as all the</div>
<div>permissions are set up.&nbsp;&nbsp;Still easy if you didn't and know how to create</div>
<div>users and set permissions in mysql.</div>
<div><br>
</div>
<div>7) edit the 10_core.pl file in the archive directory to use the URL of</div>
<div>the dev server.&nbsp;&nbsp;Then run generate apacheconf (I think with the</div>
<div>--replace flag, but that's from memory).</div>
<div><br>
</div>
<div>8) Change your apache configuration to point to where you unpacked the</div>
<div>eprint tree.</div>
<div><br>
</div>
<div>9) restart apache.</div>
<div><br>
</div>
<div>10) Debug the above process and document it on the wiki.</div>
<div><br>
</div>
<div>11) Think about getting your repository into source control to make this</div>
<div>easier.</div>
<div><br>
</div>
<div>Jisc &lt;<a href="http://www.jisc.ac.uk/">http://www.jisc.ac.uk/</a>&gt;</div>
<div><br>
</div>
<div>*Adam Field*</div>
<div>SHERPA services analyst developer</div>
<div><br>
</div>
<div>*From: *&lt;<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">eprints-tech-bounces@ecs.soton.ac.uk</a></div>
<div>&lt;<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk&gt;">mailto:eprints-tech-bounces@ecs.soton.ac.uk&gt;</a>&gt; on behalf of Andrew</div>
<div>Beeken &lt;<a href="mailto:anbeeken@lincoln.ac.uk">anbeeken@lincoln.ac.uk</a> &lt;<a href="mailto:anbeeken@lincoln.ac.uk&gt;">mailto:anbeeken@lincoln.ac.uk&gt;</a>&gt;</div>
<div>*Reply-To: *&quot;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a></div>
<div>&lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk&gt;">mailto:eprints-tech@ecs.soton.ac.uk&gt;</a>&quot; &lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a></div>
<div>&lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk&gt;">mailto:eprints-tech@ecs.soton.ac.uk&gt;</a>&gt;</div>
<div>*Date: *Monday, 25 April 2016 12:47</div>
<div>*To: *&quot;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a></div>
<div>&lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk&gt;">mailto:eprints-tech@ecs.soton.ac.uk&gt;</a>&quot; &lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a></div>
<div>&lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk&gt;">mailto:eprints-tech@ecs.soton.ac.uk&gt;</a>&gt;</div>
<div>*Subject: *[EP-tech] Copy live EPrints to staging server</div>
<div><br>
</div>
<div>Hi folks,</div>
<div><br>
</div>
<div>I’m trying to bring our live EPrints install over to a staging server to</div>
<div>do some work on it, but I’m struggling to do this in an elegant way.</div>
<div>What’s the best approach? I tried bringing the archive files down and</div>
<div>repopulating the database; there are also a few core changes to our</div>
<div>install in Perl-Lib which need bringing down however most times I pull</div>
<div>all these across and restart apache it screws things over. I’m pretty</div>
<div>sure I need to tweak some config settings and possibly run a few things</div>
<div>from the command line but I was wondering if anyone could digest the</div>
<div>procedure for me or point me in the direction of one if it’s already</div>
<div>been written!</div>
<div><br>
</div>
<div>Cheers!</div>
<div><br>
</div>
<div>Andrew</div>
<div><br>
</div>
<div><br>
</div>
<div>*The University of Lincoln, located in the heart of the city of Lincoln,</div>
<div>has established an international reputation based on high student</div>
<div>satisfaction, excellent graduate employment and world-class research.*</div>
<div><br>
</div>
<div><br>
</div>
<div>The information in this e-mail and any attachments may be confidential.</div>
<div>If you have received this email in error please notify the sender</div>
<div>immediately and remove it from your system. Do not disclose the contents</div>
<div>to another person or take copies.</div>
<div><br>
</div>
<div>Email is not secure and may contain viruses. The University of Lincoln</div>
<div>makes every effort to ensure email is sent without viruses, but cannot</div>
<div>guarantee this and recommends recipients take appropriate precautions.</div>
<div><br>
</div>
<div>The University may monitor email traffic data and content in accordance</div>
<div>with its policies and English law. Further information can be found at:</div>
<div><a href="http://lincoln.ac.uk/legal">http://lincoln.ac.uk/legal</a>.</div>
<div><br>
</div>
<div><br>
</div>
<div>Jisc is a registered charity (number 1149740) and a company limited by</div>
<div>guarantee which is registered in England under Company No. 5747339, VAT</div>
<div>No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower</div>
<div>Hill, Bristol, BS2 0JA. T 0203 697 5800.</div>
<div><br>
</div>
<div>Jisc Services Limited is a wholly owned Jisc subsidiary and a company</div>
<div>limited by guarantee which is registered in England under company number</div>
<div>2881024, VAT number GB 197 0632 86. The registered office is: One Castle</div>
<div>Park, Tower Hill, Bristol BS2 0JA. T 0203 697 5800.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">
http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a></div>
<div>*** Archive: <a href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a></div>
<div>*** EPrints community wiki: <a href="http://wiki.eprints.org/">http://wiki.eprints.org/</a></div>
<div>*** EPrints developers Forum: <a href="http://forum.eprints.org/">http://forum.eprints.org/</a></div>
<div><br>
</div>
</blockquote>
<div><br>
</div>
<div>-- </div>
<div>Alen Vodopijevec</div>
<div><br>
</div>
<div>Odsjek za informacijske tehnologije</div>
<div>Centar za znanstvene informacije</div>
<div>Institut Ruđer Bošković</div>
<div>------------------------------------------------</div>
<div>IT Section</div>
<div>Centre for Scientific Information</div>
<div>Rudjer Boskovic Institute</div>
<div>------------------------------------------------</div>
<div>Addr: Bijenicka cesta 54, Zagreb, HR</div>
<div>Email: <a href="mailto:alen@irb.hr">alen@irb.hr</a></div>
<div>Web: www.lib.irb.hr | www.irb.hr</div>
<div>Tel: &#43; 385 1 4560 929, x1243</div>
<div>Mob: &#43; 385 98 584 045</div>
<div><br>
</div>
<div>Skype: vodopijevec</div>
<div>GTalk: alen.vodopijevec</div>
<div><br>
</div>
<div>*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">
http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a></div>
<div>*** Archive: <a href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a></div>
<div>*** EPrints community wiki: <a href="http://wiki.eprints.org/">http://wiki.eprints.org/</a></div>
<div>*** EPrints developers Forum: <a href="http://forum.eprints.org/">http://forum.eprints.org/</a></div>
<div><br>
</div>
</div>
</div>
</span></span>
</body>
</html>