• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Plesk 11 Upgrade Scheduled Backup not working

igraf

Regular Pleskian
I have the same problem again with plesk 11
http://forum.parallels.com/showthread.php?t=209059

workaround
1) rpm -q --scripts psa-backup-manager | sed 1d | sh
2) /etc/init.d/crond restart

my error message with CentOS 5.8, Plesk 11.0.9 MU#4
sh: line 2315: syntax error near unexpected token `('
sh: line 2315: `preuninstall scriptlet (using /bin/sh):'

/etc/cron.d/plesk-backup-manager is created

why do not work after you upgrade the backup cronjobs?
 
The same with 3 servers

Tha same problem here. with centos 6.0 64bit after upgrade from 10 to 11 schedule backups stop working.
 
We will check it and inform you with results of investigation.
 
Hi IgorG

Let me know any update about Scheduled backup . We have upgrade plesk 11.0.9 in two CentOS (version 5.8 & 6.3) and the scheduled backup stop working after upgrade.
 
Try to use attached script and inform me with results.
 

Attachments

  • install_cron_backup.zip
    460 bytes · Views: 431
@IgorG
file is created, cronjob runs!
under crontab-l is the job not listed, is this okay?

cron log
Jul 12 19:23:17 xxx crond[3282]: (CRON) STARTUP (V5.0)
Jul 12 19:23:17 xxx crond[3282]: CRON: error in (/etc/cron.d/sa-update) problem is (bad minute)
Jul 12 19:29:01 xxx crond[3369]: (root) CMD ([ -x /usr/local/psa/admin/sbin/backupmng ] && /usr/local/psa/admin/sbin/backupmng >/dev/null 2>&1)
Jul 12 19:30:01 xxx crond[3378]: (drweb) CMD (/opt/drweb/update.pl >/dev/null 2>&1)


sa-update error
since plesk update on 11, i get the following message at sa-update
Jul 12 19:23:17 xxx crond[3282]: CRON: error in (/etc/cron.d/sa-update) problem is (bad minute)

content sa-update
#!/bin/sh

# This task was disabled by psa-spamassassin package
exit 0

permission sa-update
644
 
Last edited:
Yes, I found the script helped as well, thank you.

One note: when the script is run it activates the cron task that starts the backups which will run the missed backups from the previous night right away.

If you don't want the backups running in the day and slowing your server down (or even worse, taking sites offline due to backup settings), then I suggest you wait until a time suitable for running backups before you use this script.
 
There still seems to be a problem. Scheduled backup for the admin is working but not individual backups for subscriptions. Does anyone else have scheduled backups for individual subscriptions working with Plesk 11.0.9?

[edit] it's working now (a day later), go figure. not sure what that was about.
 
Last edited:
Thanks for the fix. I could use some help installing it, could you point me to a set of instructions or post a step by step?

Thank you.
 
how should I use this script? and how can I check if the backups are OK again?
do I have to wait until tomorrow?
 
worked for me!
Just upload anywhere for example in centOS /opt

cd /opt
sh install_cron_backup.sh (or ./install_cron_backup.sh)

The script start the backup immediatelly.
You can see it in your Admin-Panel -> Backup Manager ...

Cheers and thx !
 
Alternatively (in summary) create a cronjob as below

vim /etc/cron.d/plesk-backup-manager

And in it add:

8,23,38,53 * * * * root [ -x /opt/psa/admin/sbin/backupmng ] && /opt/psa/admin/sbin/backupmng >/dev/null 2>&1

That runs every Saturday 23hrs. You can edit the days accordingly ...
 
Back
Top