But when I’m creating the backup I get a 38 Go file and the data directory is not excluded.
Backing up data directory...
Backing up logrotate configuration...
Backing up the MySQL database...
Backing up php-fpm configuration...
Backing up nginx web server configuration...
Backing up the main app directory...
Loading installation settings...
How can I fix this ?
Version française
Il semble que le paramètre backup_core_only est ignoré quand je crée une sauvegarde NextCloud.
Mais quand je crée la sauvegarde elle pèse 38 Go et les données ne sont pas exclues.
Backing up data directory...
Backing up logrotate configuration...
Backing up the MySQL database...
Backing up php-fpm configuration...
Backing up nginx web server configuration...
Backing up the main app directory...
Loading installation settings...
Indeed, backup_core_only isn’t used anymore as an app setting.
Now, this option is replaced by a environment variable, more volatile and so, less subject to side effects.
So, now, to create a backup without the data, precede your backup command by BACKUP_CORE_ONLY=1 to set the option.
I already updated the documentation, both in English and French. Still as a PR though.
What do you mean by default at 1 ? The default value is 0, not 1. Except during upgrade.
For the web admin, you can’t currently set any variable like this one.
Pour désactiver la sauvegarde de toutes les données de cette application vous pouvez utiliser (dans le cas de Nextcloud) yunohost app setting nextcloud backup_core_only -v '1' . Cette commande ajoute backup_core_only: '1' dans /etc/yunohost/apps/nextcloud/settings.yml .
Forget about the default. I probably have change the setting a long time ago. So long ago that I though it was the default.
Anyway my periodic backup is working again and everything is fine. Thanks again for your help.