<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jun 11, 2015 at 1:51 PM, Narcis Garcia <span dir="ltr"><<a href="mailto:informatica@actiu.net" target="_blank">informatica@actiu.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Debian 8 in a single and tratitional ext4 partition.<br>
My idea is that the backup is a complete container export, to be<br>
restored in another box if necessary.<br>
<br></blockquote><div><br></div><div><br></div><div>I highly recommend you switch to btrfs or zfs (I use zfs)</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is there some newer LXC repository for Debian as ppa:ubuntu-lxc/daily ?<br></blockquote><div><br></div><div><br></div><div>You have to ask debian folks for that. AFAIK building from source should give you the same functionality though.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
At this moment, my procedure is:<br>
$ lxc-stop -n MyGuest<br>
$ tar -cjf /var/backups/MyGuest.tar.bz2 /var/lib/lxc/MyGuest<br>
$ lxc-start -n MyGuest<br>
but container unavailability is too long.<br></blockquote><div><br></div><div>exactly. With zfs it's simply "zfs snapshot data/lxc/guest@backup-1", which often takes less than 1 second (and it doesn't block container IO)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Another procedure, but without stopping container:<br>
$ cp -aPx /var/lib/lxc/MyGuest /tmp/MyGuest<br>
$ tar -cjf /var/backups/MyGuest.tar.bz2 /tmp/MyGuest<br></blockquote><div><br></div><div><br></div><div>Dangerous. If you have mysql (or another db) running on the container, you may be unable to start the it from backup later due to it complaining being corrupt.</div><div><br></div><div>-- </div><div>Fajar</div></div></div></div>