Symptoms
-
Backups are not rotated according to the value of Maximum number of full backup files to store and Keep backup files for settings in Tools & Settings > Backup Manager > Schedule or Domains > example.com > Backup Manager > Schedule
-
Backup rotation fails with the following error in
/usr/local/psa/PMM/logs/pmmcli_daemon.log.<timestamp>
:ValueError: time data '1' does not match format '%Y-%m-%d-%H%M%S'
Cause
This is a Plesk bug with ID #PPPM-10423 which will be fixed in future updates.
Note: Subscribe to this article to get notified once a fix will become available
Resolution
As a workaround:
-
Connect to the server via SSH
-
Create folder to back up the log files:
# mkdir /root/backup-PPPM-10423
-
Back up the log files:
# cp -a /var/log/plesk/PMM/*.log* /root/backup-PPPM-10423
-
Delete the logs from the original location:
# rm -rf /var/log/plesk/PMM/*.log*
-
Restart the server to make sure there aren't stuck or zombie processes running