For those of you who hadn’t noticed, automatic scheduled backups are no longer working in Plesk 11 with some distributions. It’s not just you, and it’s not just your configuration. It’s a known issue according to this forum thread.
Lucky for us there’s a simple script which can bring this ever so important functionality back. Why Parallels is not addressing this with a Micro Update is beyond me (we’re already at 11.0.9 MU15 and it’s September 2012 at the time of writing).
In this article I’ll show you how to install the script step by step. I assume you’re logged onto your system as root and know your way around the command line.
First of all we need the script on our server. The actual location of the file on your system doesn’t matter as this is a shell script and we’ll execute it in a moment.
You can find the script on page 1 of this forum thread, or in case that link ever goes down here’s a local copy on my server:
You can either FTP it to your server (any web space will do) or you can grab it via wget.
wget https://wpguru.co.uk/wp-content/uploads/2012/09/install_cron_backup.zip
Now let’s unzip it so we can use the script:
unzip install_cron_backup.zip
Once you have it, change permissions of the file so we can execute it:
chmod +x install_cron_backup.sh
And finally, let’s run the script:
./install_cron_backup.sh
That’s it! You’ll receive no feedback whatsoever, it should just work. No need to reboot your system or restart Plesk. No need to manually schedule the script – Plesk should take care of it from here.
To verify that it actually works, log in to your Plesk Panel and head over to Tools and Settings – Backup Manager. Schedule a backup in a few minutes time. I recommend using your server configuration only (without the content) as this will complete the backup much quicker.
Also, check your server time before you schedule the backup: if your server says it’s 15:10, schedule the backup for 15:15. Grab a coffee and see if it’s worked (in our example you should see results by 15:20).
Just as a reminder: even if you’re backing up to an FTP repository, Plesk will always create a backup to the local server first and then copy the file over afterwards. Just in case you see your backup popping up on your local server, check again in a moment.
YIKES: I’ve just found out that manual backups are transferred to the FTP repo, but scheduled backups are not! It’s a known issue, we’re all waiting for a solution there…
I have tried implementing this fix and it all works fine until I execute the file. It doesn’t show any error or success message and nothing shows up in the cron tab so it still isn’t working…
Any suggestions?
Jack
Hi Jack,
Once you run the script it installs itself into Plesk, there’s nothing added in the cron tab, nor will there be a success message. Try scheduling a backup in Plesk as you normally would, not via the command line. Then see if Plesk has created it for you as you’d expect.
Hi,
Yeah I realised afterwards, I was expecting it to show on the cron tab as a scheduled task but it doesn’t. It does work though, thanks for posting you;re a life saver!
Cheers,
Jack
UPDATE:
Allegedly the issue was fixed with MU 20, however many of us believe it has not been sufficiently addressed. Looks like even though scheduled backups are created again, but the dump files never get copied to the FTP repositories. Not good!
Log messages from those backup tasks are given as “Success”. Looks like the issue affects both fresh installations as well as upgrades. I’ve submitted a ticket to the support team and will keep you posted on updates here.
Hello,
have you any response from the parallels support for you ticket ?
Regards,
Björn