<p>I recently started using TRAINS, with the server in AWS AMI. We are currently using v0.9.0.</p>

<p>I would like to move the TRAINS-server to run on our on-premises kubernetes cluster. However, I don't want to lose the data on the current server in AWS (experiments, models, logins, etc...).
Is there a way to backup the current server and restore it to the local server?</p>

<p>Thanks!</p>

Oren
<p>Since this package is quite new, I'm making sure we are both referring to the same one, <em>TRAINS-server</em> <a href="https://github.com/allegroai/trains-server" rel="nofollow noreferrer">https://github.com/allegroai/trains-server</a> (which I'm one of the maintainers)</p>

<p>Backup the persistent data folders in the <em>TRAINS-server</em> AMI distribution:</p>

<ul>
<li>MongoDB: /opt/trains/data/mongo/ </li>
<li>ElasticSearch: /opt/trains/data/elastic/ </li>
<li>File Server: /mnt/fileserver/</li>
</ul>

<p>Once you have your Kubernetes cluster up, restore the three folders to a <em>sharable location</em>. When creating the <em>TRAINS-server</em> deployment yaml make sure you map the <em>sharable location</em> to the specific locations the container expects, e.g. /mnt/shared/trains/data/mongo:/opt/trains/data/mongo </p>

<p>Start the Kubernetes <em>TRAINS-server</em>, it should now have all the previous data/users etc.</p>
