diff --git a/backup.sh b/backup.sh index d3b4397..2aedeb2 100755 --- a/backup.sh +++ b/backup.sh @@ -15,6 +15,7 @@ mkdir -p $backup_dir/data/conf mkdir -p $backup_dir/data/addons mkdir -p $backup_dir/data/userdata +mkdir -p $backup_dir/data/db ## backup @@ -30,3 +31,6 @@ # openHAB userdata tar -C data -cjf ${PWD}/${backup_dir}/data/userdata/${DATE}.tbz2 userdata + +# openHAB db dir +sudo tar -C data -cjf ${PWD}/${backup_dir}/data/db/${DATE}.tbz2 db