Borg fails to backup dolibarr

What app is this about, and its version: Dolibarr
What YunoHost version are you running: 12.1.39 stable
What type of hardware are you using: Old laptop or computer

Describe your issue

I backup my whole server daily using two borg instances (one local on a usb ssd, and one distant with our good friend globenet), but there has been one app that fails its backup : dolibarr. Does not matter whether i use borg or the built in backup functionnalities, it fails.

It is quite critical as it is a work server, and dolibarr is our main professionnal tool. As always, a huge thank you to the maintainers and to the yunohost team <3

Share relevant logs or error messages

https://paste.yunohost.org/raw/goquzoyovi

Hi @Aristid

from your traces the trigger if the missing definition of syncyunohost_enabled

2026-05-19 06:02:37,716: WARNING - /var/cache/yunohost/app_tmp_work_dirs/app_9cz4_n_h/scripts/backup: ligne 63: syncyunohost_enabled : variable sans liaison

Did it happens after an upgrade or ?

Looking in github there are mention of syncyunohost here : Upgrading from 22.0.4~ynh3 to 22.0.4~ynh5 killed the app, restore does not work · Issue #192 · YunoHost-Apps/dolibarr_ynh · GitHub

@Aristid

what returns this command ( as root in terminal ) ?

yunohost app setting dolibarr syncyunohost_enabled

Backups were running fine when i was using dolibarr 18, they broke after the upgrade to 23.

returns nothing :

root@domain.tld:/# yunohost app setting dolibarr syncyunohost_enabled
root@domain.tld:/#

@Aristid

i don’t have enough knowledge to answer right now, but it is clear that this syncyunohost_enabled setting should be either true or false and now it is empty.

Question is to check what it should actualy be depending of what it was and current configuration.

Thanks for the lead, i’ll wait and see if someone has more intel…

Question is : are your dolibarr users currently synchronized with those in yunohost or are they dedicated to dolibarr ?

if you did no change from 18 so they probably are not, functionality to synchronize yunhost users into dolibarr was added in yunhost version 21 Yunosync by Shervin-QZ · Pull Request #142 · YunoHost-Apps/dolibarr_ynh · GitHub.

So just indicate yunohost that sync is not activated :

yunohost app setting dolibarr syncyunohost_enabled -v false

@Aristid if nobody with more intel comes, you still might be interested by my previous post.

Ok so the trick you’re hinting would just be to tell dolibarr that the user sync is not active ?

@Aristid the ‘trick’ is just to fill a variable with a value that is missing when doing the backup.