Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate creation of core:archive crontab with a script or console command #17719

Open
Starker3 opened this issue Jun 29, 2021 · 1 comment
Open
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@Starker3
Copy link
Contributor

It would quite useful for users to be able to run a script or a console command to automatically create a crontab for the core:archive task.

This would preferably be an interactive command where the user can input specific values or continue with defaults.
For example the user could maybe choose the following:

  • core:archive interval
  • The maximum number of archivers
  • Maximum number of requests per website
  • The Matomo URL
  • core:archive log location (Or to use the default logs folder)

Some more advanced options that can maybe also be set at the same time that the core:archive is being created (As a prompt perhaps) would be the time before the different reports (Day, week, month, year, range) are considered outdated with some defaults and recommendations for better performance.

@Starker3 Starker3 added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Jun 29, 2021
@Findus23
Copy link
Member

Something like crontab -l | command_that_adds_a_line_in_the_end |crontab - might work on a large amount of setups and doesn't need root access (of course then it is a user crontab and doesn't need the www-data column).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

3 participants