claudyus / LXC-Web-Panel

LXC Web Panel improved for lxc 1.0+
http://claudyus.github.io/LXC-Web-Panel/
Other
221 stars 68 forks source link

Backup doesnt work when rootfs have a different location from /var/lib/lxc #118

Open apinela opened 7 years ago

apinela commented 7 years ago

I use different locations for my containers rootfs, since the code for backup them have hardcoded the rootfs path, this needs some fix: https://github.com/claudyus/LXC-Web-Panel/blob/master/lwp/lxclite/__init__.py#L259

claudyus commented 7 years ago

Hi @apinela, I will be happy to merge your improvements as well as add you (or anyone else that is actively using this project) as developer here!

ddnut commented 7 years ago

stock ubuntu 16.04 uses /var/lib/lxd

/var/lib/lxc is empty

ie the panel drops containers at /var/lib/lxc/CONTAINER_NAME mine from command line are placed at /var/lib/lxd/containers/CONTAINER_NAME