How can I regenerate Matomo 5.3 rc reports via php console core:archive?

I have the problem that the months January, February are empty. I had a database collation error, which is now fixed in the archive_blob tables for January, February.
I usually generate the reports via crontab

i found this parameter, but it doesn’t work for me.

i can see that the data is available the KPI metric shows the correct values and not 0 like every other report.

if i use not the “day” view but the “month” view everything in the KPI metric is getting zero.

php ./console core:archive --force-date-range=‘2025-01-01,2025-02-28’

php -d memory_limit=24G ./console core:archive --force-periods=month

this line only updates the current month i need the last 3 months

I think the parameter is --force-all-periods

like /usr/bin/php /path/to/matomo/console core:archive --url=http://example.org/matomo/ --force-all-websites --force-all-periods=315576000

(315576000 is 10 years in seconds)

Matomo 5.3 rc1 doesn’t have this option:

The “–force-all-periods” option does not exist.

available options are:

core:archive [–url URL] [–skip-idsites [SKIP-IDSITES]] [–skip-all-segments] [–force-idsites [FORCE-IDSITES]] [–skip-segments-today] [–force-periods [FORCE-PERIODS]] [–force-date-last-n [FORCE-DATE-LAST-N]] [–force-date-range [FORCE-DATE-RANGE]] [–force-idsegments FORCE-IDSEGMENTS] [–concurrent-requests-per-website [CONCURRENT-REQUESTS-PER-WEBSITE]] [–concurrent-archivers [CONCURRENT-ARCHIVERS]] [–max-websites-to-process MAX-WEBSITES-TO-PROCESS] [–max-archives-to-process MAX-ARCHIVES-TO-PROCESS] [–stop-processing-after [STOP-PROCESSING-AFTER]] [–disable-scheduled-tasks] [–accept-invalid-ssl-certificate] [–php-cli-options [PHP-CLI-OPTIONS]] [–force-all-websites] [–force-report [FORCE-REPORT]]

I am sorry, i thought we used that in the past. how about something like --force-date-last-n=1000? I think that is in days

EDIT: Sorry, also not sure this works. I just checked How to Set up Auto-Archiving of Your Reports FAQ - On-Premise - Matomo Analytics Platform. --force-date-last-n seems deprectaed.

next try:

php /path/to/matomo/console core:archive --force-all-websites --force-date-range=2024-12-01,2025-02-28

not sure if you need to invalidate those reports first:
php /path/to/matomo/console core:invalidate-report-data --dates=2024-12-01,2025-02-28 --sites=all

strange as i had tried this -force-date-last-n=1000 i got an error message to use “procress_new_form” or somthing like that and no reports had been updated.

but now it’s runing… i didn’t use --url that could have confused the php-cli console

“force-date-last-n” is deprecated. Please use the “process_new_segments_from” INI configuration option instead."

solution:
php ./console core:archive --url=your-matomo --force-date-last-n=1000