Results 1 to 2 of 2

Thread: Remove older backups like 1 month

  1. #1
    asenasenov is offline New Member
    Join Date
    Aug 2019
    Posts
    3

    Default Remove older backups like 1 month

    I have some backup files which are created in a Daily manner. After some time they take a lot of space and i want to delete 1 mount olders. Thanks


  2. #2
    sajasajan1 is offline New Member
    Join Date
    Aug 2019
    Posts
    3

    Default

    Find command is very useful option here. you can search files older then 1 month and delete them with -delete option.
    $ find /tmp -mtime +7 -type f -name '*.tmp' -delete

    poftut.com/how-to-remove-files-older-than-1-day-1-week-1-month-recursively/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22