{"id":188,"date":"2009-01-10T01:04:38","date_gmt":"2009-01-10T06:04:38","guid":{"rendered":"http:\/\/yourlinuxguy.com\/?p=188"},"modified":"2009-01-19T11:33:25","modified_gmt":"2009-01-19T16:33:25","slug":"how-do-i-migrate-ifolder-36-to-a-new-sles-10-server","status":"publish","type":"post","link":"https:\/\/yourLinuxGuy.com\/?p=188","title":{"rendered":"How do I migrate iFolder 3.6 to a new SLES 10 server?"},"content":{"rendered":"<p>Today&#8217;s question comes from Stan Chelchowski. Here&#8217;s the essential part of what he wrote:\u00a0&#8220;<em>How do you migrate open source iFolder server and  corresponding iFolders to new hardware? Both are running SLES10. Can  this all be done by copying directories between the servers and then making the new hardware take on the old server\u2019s identity?<\/em>&#8221;<\/p>\n<p>The answer is: pretty much yes. With an eye toward the particular sequence of events, of course. I&#8217;ve actually done this myself, and have had great success with the steps outlined below. Of course, you *could* always just build a new server, and tell the users to sync their data to the new place. After all, this method is a migration in itself&#8230; \ud83d\ude09<\/p>\n<p>Anyway, back to the point, here&#8217;s the way I did it:<\/p>\n<li>Install the exact same packages on the new target server as the old source server. Obviously, none of the following will work unless the software is installed correctly!<\/li>\n<li>Shut down the apache2\/simias service on the source server, and back up the simias database location (I just use tar, for example <code>tar -zcvf if3.tgz \/if3<\/code>). This location must match the location you give\/gave during the configuration script run. Copy the backup file to the new target server.<\/li>\n<li>Make sure the server has the same name and\/or ip address as the previous server. Whether it&#8217;s the name or address (or both) depends on how the iFolder service was originally configured. If ip addresses were supplied as responses during the configuration script run, then make sure the address is the same, or apply the same concept to the name if the script was configured by name. Also, obviously, the clients cannot connect unless the same name or address is used as before.<\/li>\n<li>Ensure the same Simias\/iFolder root directory exists on the target server as the source. For example, on mine, it is a special mount point &#8220;<code>\/if3<\/code>&#8220;.<\/li>\n<li>Run the configuration script on the new target server: <code>\/usr\/bin\/simias-server-setup<\/code> &#8230;Make sure you specify everything the same as on the original source setup (things like the datastore, authentication details, etc).<\/li>\n<li>You may need to do some final touch-up steps at this point, such as removing the extra <code>simias_server.conf<\/code> or adding the <code>ifolder_apache.conf<\/code>. (Make sure to check my other posts on this topic for details.)<\/li>\n<li>Now that the script has run, and a new simias database is built on the new target server, rename that directory since we don&#8217;t need that instance of the db. For example:\u00a0 <code>mv \/if3 \/if3-dont-use<\/code><\/li>\n<li>Untar\/zip the backup file from the source. For example: <code>tar - zxvf if3.tgz<\/code> &#8230;so that the archive expands into the same place as before. You should now have a correctly named simias datastore that was migrated from the source server.<\/li>\n<li>Restart apache2 with <code>rcapache2 restart<\/code><\/li>\n<p>That should do it! If all went well, and there&#8217;s no iptables rules blocking it and such, you should be up and running. Of course, there are other ways to do it, and there are things you can change on the way, as long as you know what configuration files to edit (like those in \/etc\/simias, and at the actual simias db directory), in order to stitch it all back together. But I thought that would be outside the general scope of this post. For now anyway, I hope it works for you&#8230; Enjoy!<\/p>\n<p>\ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today&#8217;s question comes from Stan Chelchowski. Here&#8217;s the essential part of what he wrote:\u00a0&#8220;How do you migrate open source iFolder server and corresponding iFolders to new hardware? Both are running SLES10. Can this all be done by copying directories between&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/yourLinuxGuy.com\/?p=188\">Read more<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[12,35,15],"tags":[],"class_list":["post-188","post","type-post","status-publish","format-standard","hentry","category-advanced","category-ifolder3","category-suse"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pnjn1-32","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=188"}],"version-history":[{"count":7,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/188\/revisions"}],"predecessor-version":[{"id":195,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/188\/revisions\/195"}],"wp:attachment":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}