Menu

Not deleting old backups

Help
Ed Fix
2018-04-09
2018-04-09
  • Ed Fix

    Ed Fix - 2018-04-09

    I loaded Simple Backup Suite on my new Linux Mint 18.3 system. It works fine except it doesn't delete old backups as it's supposed to. I have it set to delete everything older than 6 days, but they keep hanging around. Is there anything I can do to get them to leave?

     
  • Jack Coats

    Jack Coats - 2018-04-09

    Normally I would suggest a simple chron job with a shell script to do the dirty work.

    find /var/tmp/ -type f -mtime +15 -exec rm -f {} +

    find files in the directory that are 15 days old and delete them. I do not normally run this so beware and YMMV.

    for reference
    https://unix.stackexchange.com/questions/155184/how-to-find-and-delete-files-older-than-specific-days-in-unix

     

Log in to post a comment.