How to remove Plesk backup files and their logs

Follow

Comments

5 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

Please sign in to leave a comment.

Have more questions? Submit a request