How to remove Plesk backup files and their logs

Follow

Comments

4 comments

  • Avatar
    turgut kalfaoglu (Edited )

    I have lots of other files in the  /var/lib/psa -- some seems to be left over from migration days..

    Can't we delete them? The above commands did nothing

    # du -sh dumps/
    199G    dumps/

    drwxr-x---.   7 psaadm psaadm 208K May 26 09:41 .
    -rw-------    1 root   root   3.5M May 26 09:41 mysql.preresolve.20230526-094109.dump.gz
    -rw-------    1 root   root   5.7K May 26 08:39 mysql.preupgrade.apsc.18.0.52-18.0.52.2023
    0526-083923.dump.gz
    -rw-------    1 root   root   3.4M May 26 08:39 mysql.preupgrade.18.0.52-18.0.52.20230526-
    083920.dump.gz
    -rw-------    1 root   root   3.5M May 26 05:44 mysql.daily.dump.0.gz
    -rw-------    1 root   root   3.5M May 25 06:00 mysql.daily.dump.1.gz
    -rw-------    1 root   root   3.5M May 24 05:58 mysql.daily.dump.2.gz
    -rw-------    1 root   root   3.5M May 23 05:39 mysql.daily.dump.3.gz
    -rw-------    1 root   root   3.5M May 22 05:47 mysql.daily.dump.4.gz
    -rw-------    1 root   root   3.5M May 21 06:23 mysql.daily.dump.5.gz
    drwxr-x---    2 root   root   4.0K May 21 03:59 .run
    -rw-------    1 root   root   502K May 21 03:57 backup_info_2305070213_2305210212.xml
    -rw-r-----    1 root   root    781 May 21 03:57 backup_ext_performance-booster_2305070213_
    2305210212.tzst
    -rw-r-----    1 root   root   1.1M May 21 03:57 backup_ext_dist_performance-booster_230507
    0213_2305210212.tzst
    -rw-r-----    1 root   root   2.2M May 21 03:57 backup_ext_dist_docker_2305070213_23052102
    12.tzst
    -rw-r-----    1 root   root    214 May 21 03:57 backup_ext_traffic-monitor_2305070213_2305
    210212.tzst
    -rw-r-----    1 root   root   6.4M May 21 03:57 backup_ext_dist_traffic-monitor_2305070213
    _2305210212.tzst
    -rw-r-----    1 root   root     34 May 21 03:57 backup_ext_statistics-usage-manager_230507
    0213_2305210212.tzst
    -rw-r-----    1 root   root   491K May 21 03:57 backup_ext_dist_statistics-usage-manager_2
    305070213_2305210212.tzst

     

    0
    Comment actions Permalink
  • Avatar
    Julian Bonpland Mignaquy

    turgut kalfaoglu could you please the exact command you applied here?

    0
    Comment actions Permalink
  • Avatar
    Adel Csakvary

    Cannot delete anything at /var/lib/psa/dumps :(
    This guide did not work...

    0
    Comment actions Permalink
  • Avatar
    Julian Bonpland Mignaquy

    hi Adel Csakvary

    find /var/lib/psa/dumps -name 'backup*' -type f -ctime +XX -exec rm -rf {} +;

    where XX is a number of days before the current date.

    Most likely you did not change the XX.

    Or are you receiving an error?

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request