<div dir="ltr">Thank you tranxene50, I&#39;ve installed openvz-diff-backups on my ovz-7 hosts, and so far it looks very promising.<div><br></div><div>Jake</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 8, 2020 at 4:05 PM tranxene50 &lt;<a href="mailto:tranxene50@openvz-diff-backups.fr">tranxene50@openvz-diff-backups.fr</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello!<br>
<br>
Please forgive my bad English, I live in France.<br>
<br>
A few years ago, as a hobby in the beginning, I created a file based <br>
&quot;incremental&quot; backup tool (that heavily relies on rsync) : <br>
<a href="https://www.openvz-diff-backups.fr" rel="noreferrer" target="_blank">https://www.openvz-diff-backups.fr</a><br>
<br>
It works flawlessly with OpenVZ 6 but only have been rapidly tested with <br>
OpenVZ 7.<br>
<br>
The main difference between OpenVZ 6 and 7 is that memory dump <br>
(checkpoint) is now done using CRIU instead of OpenVZ &quot;Legacy&quot; kernel.<br>
<br>
But,  globally, the process is still the same: create a ploop snapshot, <br>
mount it, sync it (with rsync) and then create a &quot;diff&quot; backup (using <br>
rsync again with --link-dest).<br>
<br>
As far as I know, this is one of the rarest GPL tools (any hint <br>
appreciated!) able to backup/restore CT files and, most importantly, <br>
full memory state.<br>
<br>
Restoring a &quot;live&quot; backup is like resuming an OS (Windows, Linux, MacOS, <br>
etc) after it had been put to sleep: the container will resume and works <br>
again, just like nothing had happen.<br>
<br>
So you can cheat and pretend 100% uptime even if a container was down <br>
most of the time... (evidently this a joke and, please, do not play at <br>
this game: /var/log/* will betray you)<br>
<br>
Note: to migrate CT between OpenVZ 6 and 7, you must use &quot;cold&quot; backups <br>
because memory dumps are incompatible (OpenVZ Kernel vs CRIU).<br>
<br>
To answer your questions:<br>
<br>
1) you can restore any previous backup because each one is considered as <br>
a full backup (no diff/incremental computing: it is just <br>
files/directories/other - and hard links)<br>
<br>
2) because backups are just a bunch of files (and mostly hard links), <br>
you can easily browse any backup of a CT and copy any files/directories <br>
needed<br>
<br>
At the moment, development of openvz-diff-backups is on pause - because <br>
it fulfills all my needs with OpenVZ 6 - but I am in the process of <br>
moving to OpenVZ 7 in a few months.<br>
<br>
So, if you encounter a bug or an issue, please leave me a message: the <br>
tool has a very conservative approach and is designed to cleanly stop if <br>
anything unexpected/unknown/abnormal happens.<br>
<br>
Have a nice day!<br>
<br>
Le 08/09/2020 à 14:24, <a href="mailto:mailinglist@tikklik.nl" target="_blank">mailinglist@tikklik.nl</a> a écrit :<br>
&gt; Hello,<br>
&gt;<br>
&gt; Using openvz7<br>
&gt; Im looking ad my backup strategy<br>
&gt; I allways used rsync on openvz6<br>
&gt; And looks like on openvz7 this can also be done on /vz/root/VEID<br>
&gt; But i dont know if i can do a full restore from that...<br>
&gt;<br>
&gt;<br>
&gt; Now im looking at snapshots<br>
&gt; <a href="https://github.com/TamCore/vzpbackup" rel="noreferrer" target="_blank">https://github.com/TamCore/vzpbackup</a><br>
&gt; it can make full backups and incremental backups<br>
&gt;<br>
&gt; Is someone using this script?<br>
&gt; i have some question hope someone can help<br>
&gt;<br>
&gt; the incremental backups are nice to save space and time on a remote<br>
&gt; backupserver<br>
&gt; But how does a restore works.<br>
&gt; For what i know you can only restore a full snapshot, the incremental<br>
&gt; backups have only the changed files<br>
&gt;<br>
&gt; Question 2.<br>
&gt; Is it possible to extract a file from the backup for a single file restore?<br>
&gt; And if so can someone tell me how?<br>
&gt;<br>
&gt;<br>
&gt; Thanxs<br>
&gt; Steffan<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@openvz.org" target="_blank">Users@openvz.org</a><br>
&gt; <a href="https://lists.openvz.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
<br>
-- <br>
tranxene50<br>
<a href="mailto:tranxene50@openvz-diff-backups.fr" target="_blank">tranxene50@openvz-diff-backups.fr</a><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openvz.org" target="_blank">Users@openvz.org</a><br>
<a href="https://lists.openvz.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
</blockquote></div>