YunoHost-Apps/trilium_ynh

Roll back `$data_dir` usage

Opened this issue · 1 comments

Given Trilium uses SQLite DB that's currently stored in $data_dir which is marked --is_big=1 in backup script a failed upgrade may and will lead to issues like #47, where the database gets updated, upgrade fails, app is rolled back but the DB is already updated and not rolled back hence you land in unusable state :/

pinq- commented

I don't know is it same issue, but when app makes backup, it doesn't backup home folder where the database is. When I make manual backup, the home folder is in the backup. I think the home folder should be in the backup file also.