1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Plesk 11 Upgrade Scheduled Backup not working

Discussion in 'Plesk 11.x for Linux' started by igraf, Jul 6, 2012.

  1. igraf

    igraf Regular Pleskian

    25
    57%
    Joined:
    Jan 26, 2006
    Messages:
    103
    Likes Received:
    0
    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?
     
  2. NicolaosM

    NicolaosM Guest

    0
     
    The same with 3 servers

    Tha same problem here. with centos 6.0 64bit after upgrade from 10 to 11 schedule backups stop working.
     
  3. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,553
    Likes Received:
    1,241
    Location:
    Novosibirsk, Russia
    We will check it and inform you with results of investigation.
     
  4. Binesh S

    Binesh S Regular Pleskian

    27
    23%
    Joined:
    Jun 24, 2009
    Messages:
    119
    Likes Received:
    1
    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.
     
  5. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,553
    Likes Received:
    1,241
    Location:
    Novosibirsk, Russia
    Try to use attached script and inform me with results.
     

    Attached Files:

  6. igraf

    igraf Regular Pleskian

    25
    57%
    Joined:
    Jan 26, 2006
    Messages:
    103
    Likes Received:
    0
    @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: Jul 13, 2012
  7. Binesh S

    Binesh S Regular Pleskian

    27
    23%
    Joined:
    Jun 24, 2009
    Messages:
    119
    Likes Received:
    1
    IgorG,

    The Scheduled backup working fine after your script attachment

    Thanks
     
  8. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,553
    Likes Received:
    1,241
    Location:
    Novosibirsk, Russia
    I'm glad to hear it. Thank you for information.
     
  9. rosskendall

    rosskendall Basic Pleskian

    17
     
    Joined:
    Oct 13, 2010
    Messages:
    41
    Likes Received:
    0
    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.
     
  10. rosskendall

    rosskendall Basic Pleskian

    17
     
    Joined:
    Oct 13, 2010
    Messages:
    41
    Likes Received:
    0
    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: Jul 18, 2012
  11. JauntMedia

    JauntMedia Guest

    0
     
    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.
     
  12. 247amdan

    247amdan New Pleskian

    10
    35%
    Joined:
    Jul 23, 2012
    Messages:
    6
    Likes Received:
    0
    how should I use this script? and how can I check if the backups are OK again?
    do I have to wait until tomorrow?
     
  13. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,553
    Likes Received:
    1,241
    Location:
    Novosibirsk, Russia
    Just upload it on your server, unpack and run. That's all.
     
  14. JauntMedia

    JauntMedia Guest

    0
     
    Upload to which directory?
     
  15. FabianR

    FabianR Guest

    0
     
    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 !
     
  16. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    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 ...
     
  17. aFrIaN

    aFrIaN Guest

    0
     
    Thanks for the fix ;)
     
  18. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    Any time :)
     
  19. vchris

    vchris Guest

    0
     
    Script is working for me too.
    thx IgorG
     
  20. BalvinderR

    BalvinderR New Pleskian

    10
     
    Joined:
    Sep 7, 2012
    Messages:
    2
    Likes Received:
    0
    Location:
    New Delhi
    Hi

    We've scheduled a daily backup. So, do we need to run this script daily?

    Thanks
    Balvinder
     
Loading...