Minimal backup, configuration not restored

Hi;

I am backing up HA like this (bash script snippet):

do_homeassistant()
{
        if [ "$1" == "save" ]; then
                is_installed python3-home-assistant
                if [ $? -eq 0 ]; then return 0; fi
                find /etc/home-assistant/*.yaml >> config.files
                find /root/.homeassistant/*.yaml >> config.files
                echo "/etc/home-assistant/home-assistant_v2.db" >> config.files
        elif [ -d $RESTORE_DIR/etc/home-assistant ]; then
                run opkg install python3-home-assistant
                cp $RESTORE_DIR/etc/home-assistant/* /etc/home-assistant
                mkdir -p /root/.homeassistant
                cp $RESTORE_DIR/root/.homeassistant/* /root/.homeassistant
                /etc/init.d/home-assistant stop; /etc/init.d/home-assistant start
        fi
}

on openwrt (my port).

After a restore, previously configured user is forgotten.
What am I missing?

And, is it necessary to backup/restore home-assistant_v2.db?

Thanks;
Bill