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
Update PowerShell script to match archive.sh #2848
Comments
Attachment: Upgraded archive.windows.ps1 file. |
Sorry that I didn't format that list very well; I wasn't thinking about it being wiki syntax. |
And one more comment. The command line parameters for powershell when calling it from a scheduled task should be: Noninteractive Noprofile File "C:\inetpub\wwwroot\piwik\misc\cron\archive.windows.ps1" Remove the curly braces and the ampersand and use the -File parameter rather than the -Command parameter. It's simpler and it's easier to read / understand. Please update the documentation to reflect this. |
Thank you for your contribution! Feedback
|
Volox did you see my last comment? your answer would be very appreciated (otherwise will mark as wont fix since we will now have #2327 ) |
In 916d8d6: Starting January 2014, this script is now deprecated. Please only use the standard archive.php script in your scheduled task setup. See documentation at: http://piwik.org/docs/setup-auto-archiving/ Refs #1959 #1411 #2848 |
… the standard archive.php script in your scheduled task setup. See documentation at: http://piwik.org/docs/setup-auto-archiving/ Refs matomo-org#1959 matomo-org#1411 matomo-org#2848
I saw in the comments of 1411 that the PowerShell script for archiving needed to be updated to match the latest archive.sh
The attached file does that as well as a few other improvements. Here is the summary of changes:
This was added because I have been experiencing issues where PHP.exe CLI will crash when running archive but it does so silently when the archive is in a scheduled task. This should now cause the scheduled task to fail if the PHP.exe fails. This does not cover errors that are returned from the Piwik API
If someone could get this into the codebase so that it becomes part of the next release, it would be much appreciated.
Keywords: powershell, archive
The text was updated successfully, but these errors were encountered: