How to change log rotation settings for all domains at once?

Follow

Comments

4 comments

  • Avatar
    Christopher Danks

    the windows log.zip does not work on Onyx 17.8

    a quick fix

     

    Replace the 3 top lines:

     

    @echo off
    set /p password="Please enter your Plesk administrator password: "


    "%plesk_dir%\MySQL\bin\mysql.exe" -uadmin -p%password% -P8306 psa -s -r -e "select name from domains" > domains.txt

     

    with these 2 lines:

     

    @echo off
    plesk db -s -r -e "select name from domains" > domains.txt

  • Avatar
    Denis Bykov

    @Christopher

    I verified the fix and added the updated script to the article. Thank you for your input.

  • Avatar
    Gianluca

    Both the links to download (for Plesk 12.5 and older or for Plesk Onyx and newer) are wrong.

  • Avatar
    Ivan Postnikov

    Hello @Gianluca!

    Thank you for noticing, links were fixed.

Please sign in to leave a comment.

Have more questions? Submit a request