<p dir="ltr">Seems really dependent upon the container layout as to what's the most appropriate way of doing that. For instance, if the underlying fs of the source container is something like btrfs or zfs you could imagine doing a send/recv of a golden snapshot. Possibly also for an lvm volume/snapshot. For others rsync might be best. For others maybe it's just a deployment script or tar or git repo.</p>
<p dir="ltr"></cent></cent></p>
<p dir="ltr">Cheers,<br>
Brian</p>
<br><div class="gmail_quote"><div dir="ltr">On Wed, Oct 12, 2016, 16:23 Samuel Williams <<a href="mailto:space.ship.traveller@gmail.com">space.ship.traveller@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg">I'm not sure if this belongs in machinectl, but it would be interesting to explore some kind of deployment mechanism. e.g. machinectl deploy local-container-name ssh://remote-server:container-name because I'm sure this is going to be a really common use case, and there are enough details (e.g. stopping and starting the remote machine) that it would be nice to keep it easy for new users.</div><div class="gmail_extra gmail_msg"><br class="gmail_msg"><div class="gmail_quote gmail_msg">On 13 October 2016 at 02:10, Chris Bell <span dir="ltr" class="gmail_msg"><<a href="mailto:cwbell@narmos.org" class="gmail_msg" target="_blank">cwbell@narmos.org</a>></span> wrote:<br class="gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="gmail_msg">On 2016-10-11 22:29, Samuel Williams wrote:<br class="gmail_msg">
<blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br class="gmail_msg">
For step 2, what would be the best practice. Rsync the local container<br class="gmail_msg">
to the remote container?<br class="gmail_msg">
<br class="gmail_msg">
</blockquote>
<br class="gmail_msg"></span>
That's worked fine for me so far. Just to state the obvious: makes sure the container is stopped before using rsync.<br class="gmail_msg">
</blockquote></div><br class="gmail_msg"></div>
_______________________________________________<br class="gmail_msg">
systemd-devel mailing list<br class="gmail_msg">
<a href="mailto:systemd-devel@lists.freedesktop.org" class="gmail_msg" target="_blank">systemd-devel@lists.freedesktop.org</a><br class="gmail_msg">
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br class="gmail_msg">
</blockquote></div>