Seite 1 von 1

Config .sbk extract from SD-Card

Verfasst: 19.06.2017, 13:40
von Peacebrother
Hi,

my Raspbian Jessie with YAHM crashed and will not boot anymore. Is it possible to extract the config file (.sbk) of the CCU2 from the SD-Card?

Thank you

Thomas

Config .sbk extract from SD-Card

Verfasst: 19.06.2017, 14:34
von Peacebrother
So, I have mounted the Linux Filesystem under windows. But I can't find the Folder with the Config Files. Does anybody knows the path?

Re: Config .sbk extract from SD-Card

Verfasst: 20.06.2017, 09:14
von leonsio
you can find the container inside /var/lib/lxc folder
just backup yahm folder, and you can restore it on a new sd card

the ccu2 configuration are stored here: /var/lib/lxc/yahm/root/usr/local/etc

Re: Config .sbk extract from SD-Card

Verfasst: 20.06.2017, 14:14
von Peacebrother
Thank you. I found these files.

If I copy only the ccu2 config files in the new directory, it takes no effect.

After I copied the whole yahm directory, the container won't start anymore.

Is there any trick to start it?

Re: Config .sbk extract from SD-Card

Verfasst: 20.06.2017, 17:13
von leonsio
you have two options

1. backup&restore configuration
backup /var/lib/lxc/yahm/root/usr/local/etc
install yahm (quickinstall)
copy the files to the new yahm installation

2. backup&restore yahm
backup /var/lib/lxc folder
install yahm (quickinstall)
remove /var/lib/lxc folder
restore /var/lib/lxc from backup
(attention take a look on permissions)

you can find lxc logs inside (/var/lib/lxc/yahm folder)
the yahm logs (console) can be find in /var/lib/yahm