<p dir="ltr"><br>
On Oct 1, 2014 8:00 PM, &quot;Scott Dowdle&quot; &lt;<a href="mailto:dowdle@montanalinux.org">dowdle@montanalinux.org</a>&gt; wrote:<br>
&gt;<br>
&gt; Greetings,<br>
&gt;<br>
&gt; ----- Original Message -----<br>
&gt; &gt; Been studying that.  Does not seem to compress backup.<br>
&gt;<br>
&gt; Hmmm, I see this within some of the shell script code:<br>
&gt;<br>
&gt;   tar cf backup.tar.xz<br>
&gt;<br>
&gt; Someone altered that... as that just means (c)reate (f)ile  You need to add J for xz compression.  z for gz, etc. </p>
<p dir="ltr">I think nowdays tar guesses the compression algorithm from the file suffix — this is true at least for decompression, it&#39;s enough to say xf and it will figure the rest.</p>
<p dir="ltr">&gt; It is just using the standard tar command so there should be no mysteries... and you can use whatever flags you want for whatever type of compression you want.<br>
&gt;<br>
&gt; What I do for my own backups, rather than tar and compress, is to rsync to another directory on the host... but if I wanted a compressed .tar file I would do it on my rsync&#39;ed copy after the fact.<br>
&gt;<br>
&gt; &gt; Also, does not spell out how to restore it.  Guess I can experiment but I really<br>
&gt; &gt; hopped ploop was far enough along that there were simple commands to<br>
&gt; &gt; do all this.<br>
&gt;<br>
&gt; If you know how OpenVZ works, restoring it is fairly obvious but your mileage may vary.  When a container is created a directory is created under /vz/private named {ctid}.  Then the OS Template is extracted to that directory.  Restoring from backup should be the exact same thing... or do you just want a few files?  It depends.<br>
&gt;<br>
&gt; What does vzdump do?  How does it do its backup and restore?  It should be fairly easy to mimic that.<br>
&gt;<br>
&gt; What ploop does is give one an easy way to make a snapshot which one can make a backup of however desired... without interrupting the running container.<br>
&gt;<br>
&gt; If you have additional questions, feel free to ask.  I&#39;ll try to update the wiki entry to add the compression flag.<br>
&gt;<br>
&gt; TYL,<br>
&gt; --<br>
&gt; Scott Dowdle<br>
&gt; 704 Church Street<br>
&gt; Belgrade, MT 59714<br>
&gt; (406)388-0827 [home]<br>
&gt; (406)994-3931 [work]<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@openvz.org">Users@openvz.org</a><br>
&gt; <a href="https://lists.openvz.org/mailman/listinfo/users">https://lists.openvz.org/mailman/listinfo/users</a><br>
</p>