I’d like to adapt my script for backing up calendars and addressbooks (Calcardbackup: bash script to backup Nextcloud calendars and addressbooks as *.ics/*.vcf files) to also work with snap installations. Therefore I need to read out a couple of values from the database (e.g. calendernames and their according url). I saw that nextcloud-snap comes with an included cli-utility
nextcloud.mysql-client. I don’t have snap installed myself, but the sourcecode looks like the utility will only open a mysql console and ignore any on command line given options (my script uses mysql options
--silent as described here: https://dev.mysql.com/doc/refman/5.7/en/mysql-command-options.html).
Is there a way to execute a mysql command, grap the output and then quit the mysql console? Or are the any plans to implement the use of mysql options for
I looked in the forum for a similar question but didn’t find anything. Apologies if I’ve overseen anything.