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.