On 12/1/05, <b class="gmail_sendername">Patrick R. Michaud</b> &lt;<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, Dec 01, 2005 at 09:49:13AM -0600, Jon Haupt wrote:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;Q: I have an existing installation and I want to move over to using SVN.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;What's the best way of getting that going?<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;What would happen if I just did a checkout on top of the existing
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;installation?&nbsp;&nbsp;Would that work, or would it be confused, or would svn even<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;let me do that?<br><br>I just tried it, and apparently svn won't let you checkout on top of<br>an existing installation.&nbsp;&nbsp;:-(
<br><br>However, it appears you can do almost the same steps as for a normal<br>upgrade.&nbsp;&nbsp;Here's what I just tried on my system ... but please be<br>sure to have a backup copy of your site somewhere, first!<br><br>First, checkout an svn copy of pmwiki into a directory called &quot;latest/&quot;:
<br><br>&nbsp;&nbsp;&nbsp;&nbsp;$ svn checkout <a href="svn://pmwiki.org/pmwiki/tags/latest">svn://pmwiki.org/pmwiki/tags/latest</a><br><br>Next, recursively copy this directory and its permissions over the<br>existing pmwiki installation (note the '.'):
<br><br>&nbsp;&nbsp;&nbsp;&nbsp;$ cp -rp latest/. pmwiki<br><br>That should do it!&nbsp;&nbsp;You can then change into the pmwiki directory and<br>issue &quot;svn info&quot; to make sure everything is up to date, and your site<br>should still be running (albeit with the latest version).&nbsp;&nbsp;The
<br>&quot;svn update&quot; command will bring your installation up to the latest<br>release.<br><br>After you're comfortable that things are working in svn, you can remove<br>the &quot;latest/&quot; subdirectory listed above, and you can also remove the
<br>the various CVS-related files and directories from the pmwiki/ directory.<br>On my system, the things that would be removed from pmwiki/ are:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tests/<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CVS/<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .cvsignore<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cookbook/CVS/
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pub/CVS/<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pub/skins/pmwiki/CVS/<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pub/skins/print/CVS/<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pub/guiedit/CVS/<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scripts/CVS/<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; local/CVS/<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; local/.cvsignore<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wikilib.d/CVS/<br><br>Hope this helps, and *please* be sure to make a backup first, and
<br>if you try it, let us know how it works out!<br><br>Pm<br><br>_______________________________________________<br>pmwiki-users mailing list<br><a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>
<a href="http://host.pmichaud.com/mailman/listinfo/pmwiki-users">http://host.pmichaud.com/mailman/listinfo/pmwiki-users</a><br></blockquote></div><br>I
tried this on two separate installations, one a standalone, and the
other a wikifarm, and both worked perfectly using the method described
above.&nbsp; <br>
<br>
FYI, I wasn't using CVS before, just using the method described in
<a href="http://www.pmwiki.org/wiki/PmWiki/Upgrades">http://www.pmwiki.org/wiki/PmWiki/Upgrades</a>, so I didn't have anything
(beyond the /latest directory) to delete.&nbsp; <br>
<br>
Thanks very much,<br>
<br>
Jon<br clear="all"><br>-- <br>Jon Haupt<br>Fine &amp; Performing Arts Librarian<br>Iowa State University<br>152 Parks Library<br>Ames, IA 50011<br>515-294-0904<br><a href="mailto:jhaupt@iastate.edu">jhaupt@iastate.edu</a>