<p dir="ltr"><br>
On Oct 1, 2014 8:00 PM, "Scott Dowdle" <<a href="mailto:dowdle@montanalinux.org">dowdle@montanalinux.org</a>> wrote:<br>
><br>
> Greetings,<br>
><br>
> ----- Original Message -----<br>
> > Been studying that. Does not seem to compress backup.<br>
><br>
> Hmmm, I see this within some of the shell script code:<br>
><br>
> tar cf backup.tar.xz<br>
><br>
> 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's enough to say xf and it will figure the rest.</p>
<p dir="ltr">> 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>
><br>
> 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'ed copy after the fact.<br>
><br>
> > Also, does not spell out how to restore it. Guess I can experiment but I really<br>
> > hopped ploop was far enough along that there were simple commands to<br>
> > do all this.<br>
><br>
> 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>
><br>
> What does vzdump do? How does it do its backup and restore? It should be fairly easy to mimic that.<br>
><br>
> 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>
><br>
> If you have additional questions, feel free to ask. I'll try to update the wiki entry to add the compression flag.<br>
><br>
> TYL,<br>
> --<br>
> Scott Dowdle<br>
> 704 Church Street<br>
> Belgrade, MT 59714<br>
> (406)388-0827 [home]<br>
> (406)994-3931 [work]<br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@openvz.org">Users@openvz.org</a><br>
> <a href="https://lists.openvz.org/mailman/listinfo/users">https://lists.openvz.org/mailman/listinfo/users</a><br>
</p>