On October 19, 2021, we have enabled single-sign-on for our Plesk Support Center to provide a seamless login/account experience. This implies that you’ll be able to use a single account across any of our web-facing properties.
If you had already registered your account at Plesk 360 (formerly known as My Plesk) please use one for login. Otherwise please re-register it using the same email address as your existing Zendesk login (support account). It’s essential that you use the same email address on our support center to ensure that your tickets stay attached to the same account.

 How to remove Plesk backup files and their logs

Follow

Comments

11 comments

  • Avatar
    Steven Procopio

    I'm not sure if there is an equivalent for Windows, but if there isn't it would be nice to see one as I have several clients that have been converted from reseller to customers in Plesk on Windows

    1
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello @Steven, 

    The GUI steps from this article are identical for Linux and Windows.

    Command-line solution for removing backups is also in place.

    0
    Comment actions Permalink
  • Avatar
    Gabriel Delpech

    Hello,

    I've removed old files this way, but they still are on the hard drive (and not in the list anymore). I've tried to manually remove them with "Diskspace usage viewer" and it says they can't be removed. What should I do?

    Thanks.

    0
    Comment actions Permalink
  • Avatar
    Anton Maslov

    Hello Gabriel, the command below has params:

    find /var/log/plesk/PMM/ -name 'backup*' -type d -ctime +XX -exec rm -rf {} +;

    • XX is a number of days before the current date.
    • name 'backup*' - it also remove files which name starts with word "backup" so "backup_1231" will match too.

    If any files left means they either do not match name pattern or do not match number of dates before the current date.

    Consider modifying scripts according to your needs to remove these files.

    0
    Comment actions Permalink
  • Avatar
    Gabriel Delpech

    Thanks a lot Anton !

    0
    Comment actions Permalink
  • Avatar
    Carlos Dias

     

    Boa tarde,

    Como posso apagar todos os backups? O PLESK apenas me deixa selecionar o primeiro. Como Fazer?

    0
    Comment actions Permalink
  • Avatar
    Greg

    Anton Maslov

    is not shouldn't be type f

    find /var/log/plesk/PMM/ -name 'backup*' -type f -ctime +XX -exec rm -rf {} \;

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello Greg

    We're removing the whole directories, that's why "-type d".

    Carlos Dias

    If you're an admin of this Plesk installation, you'll be able to remove them from Tools & Settings > Backup Manager.

    0
    Comment actions Permalink
  • Avatar
    Joe By

    After all that was written above, I have a question:

    Plesk stores all my backups automatically on an external FTP-server. Within a long time there are many files in /var/lib/psa/dumps. Is there a problem, if I delete the content of this folder completely via SSH as root?

    Thanks in advance

     

    Joe

    1
    Comment actions Permalink
  • Avatar
    Necro (Edited )

    I'm unable to delete a backup because i can't select it to be deleted - i also run the commands but didn't help.

    Error log

    Warning:
    Unable to create remote backup, the local backup will be created. Error: Unable to export backup: Transport error: unable to check directory existence: Curl error: (28) Timeout was reached: Last FTP request: Last FTP response:
    Warning:
    Unable to delete the incomplete remote backup. Error: Failed to exec pmm-ras: Exit code: 126: Transport error: unable to check file existence: Curl error: (28) Timeout was reached: Last FTP request: Last FTP response:
     
    Please help! Thanks
    0
    Comment actions Permalink
  • Avatar
    jack black

    Use Long Path Tool, Long Path Tool can simplify and probably end your problems in unlocking, managing and renaming files that appear to have a long filename.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request