How to backup libraries and language settings

  • I need to do a new install beacuse I can't update (fat partition is too smal) with nithly builds. I have a script that makes a backup of all important files and folders in /storage but when I restore:
    - language setting are not restored
    - alla libraries are gone and have to make new scans of every media folder

    Here's the script:

    if [[ ! -f /storage/backup/BACKUP* ]]; then
    echo Il file non esiste, eseguo un nuovo backup!
    DATAFILE="`date +%d%m%Y-%H%M%S`"
    tar --exclude=tvshows \
    --exclude=backup \
    --exclude=videos \
    --exclude=screenshots \
    --exclude=recordings \
    --exclude=pictures \
    --exclude=music \
    --exclude=logfiles \
    --exclude=emulators \
    --exclude=downloads \
    --exclude=lost+found \
    -cf /storage/backup/BACKUP-$DATAFILE.tar /storage
    fi

    I backup every folder and file apart from those I exclude. I also used tha backup addon: it restores language settings but not libraries.

    Am I doing anything wrong?

    Thanks a lot,

    Michele.

  • To anyone who may help, I found a solution by myself.
    First I realized I did one mistake: I restored backup with kodi service up and it is wrong so:
    1) first I stopped kodi service,
    2) restored backup from my backup file then,
    3) before starting up kodi service again, renamed the MyVideoxxx.db file (where xxx is the most recent number) in /storage/.kodu/userdata/Database because it's created by new installation
    4) next step was to start kodi service and Bingo! All libraries and settings were there!

    Have a nice day,

    Michele