[11:57:28]
<rodinux> I have a problem with Borg backups, I have installed Dolibarr (branch testing) a week ago and the backups with borg failed with
```
WARNING Source path '/etc/sudoers.d/dolibarr_syncyunohost' does not exist
ERROR Could not back up dolibarr
ERROR Nothing to save
```
[12:10:42]
<rodinux> I think there is stil something wrong with the hook created https://github.com/YunoHost-Apps/dolibarr_ynh/blob/testing/hooks/post_user_create
[12:11:46]
<rodinux> I haven't activated the option so it should be ignored...
[12:18:34]
<rodinux> I remember also have seen a warning about this hook...
[12:36:52]
<rodinux> Why borg want to found a file `/etc/sudoers.d/dolibarr_syncyunohost` which may not be here ??
[12:48:54]
<rodinux> Or I can try excluding Dolibarr from now... but it seems perhaps a bug...
[13:03:23]
<rodinux> I am thinking about try install a Dolibarr with a my_webapp without the LDAP auth...
[13:53:45]
<rodinux> well I have try add in the borg conf `exclude:dolibarr` so I have `all` and `exclude:dolibarr` but it is worse ! borg try backup only dolibarr !
```
The backup miserably failed to backup dolibarr application.
INFO Creating a backup archive from the collected files…
INFO The archive will contain about 5.6MB of data.
SUCCESS Backup created: auto_conf
name: auto_conf
results:
apps:
system:
conf_ldap: Success
conf_manually_modified_files: Success
conf_ynh_certs: Success
conf_ynh_settings: Success
size: 5861704
INFO Creating a backup archive from the collected files…
INFO The archive will contain about 2.9GB of data.
SUCCESS Backup created: auto_data
name: auto_data
results:
apps:
system:
data_home: Success
data_mail: Success
data_multimedia: Success
size: 3066076900
INFO Collecting files to be backed up for dolibarr…
INFO Declaring files to be backed up...
INFO Backing up the MySQL database...
INFO Backing up syncyunohost.sh script from /usr/local/bin/...
INFO Backing up sudoers.d file
INFO The operation 'Create a backup archive' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20250623-135029-backup_create' to get help
WARNING Source path '/etc/sudoers.d/dolibarr_syncyunohost' does not exist
ERROR Could not back up dolibarr
ERROR Nothing to save
```
[13:58:44]
<rodinux> or I need do a `touch /etc/sudoers.d/dolibarr_syncyunohost` first ??
[13:59:58]
<tituspijean[m]> What version of dolibarr are you running? in the latest, there is no mention of that sudoers file in the backup script
[14:00:27]
<rodinux> is the testing version
[14:04:31]
<rodinux> Ah yes ! this is the error, it should be something like `if [ $syncyunohost_enabled == true ]`
[14:20:13]
<rodinux> The testing branch gave a more recent version but also all this new config_panel to be avalaible create yunohost users from dolibarr if $syncyunohost_enabled is enabled... and this was missing in backup script...
[19:11:17]
<rodinux> Ok, I fix it and it's really better, Borg backup could now backuped dolibarr