What the script does is dumps out users calendars and address books in .ics and .vcf format - which can easily be imported when needed. What I do (as the web user) is:
- Dump out the users data a files in the nextcloud admins account (not compressing them into a package, and only keeping 14 days backups):
/usr/bin/calcardbackup/calcardbackup "/srv/www/htdocs/nextcloud" -x -r 14 -o "/srv/www/htdocs/nextcloud/data/admin/files/Backups" - Tell nextcloud to rescan the admin's files to make them visible in the nextcloud client
php /srv/www/htdocs/nextcloud/occ files:scan -p "admin/files/Backups" - Once I conformed that these worked OK I added them to the web user's cron jobs to run daily at 2am