>_ IzzyLab

Topic breakdown

Keeping backups forever is expensive, so old dumps are regularly cleaned out by age. find measures a file's age by its modification time in days and tells the direction by the sign: +N is older, -N is younger, N is exactly. Conditions in a find expression are joined with AND, so the name mask and the age threshold together select only old dumps without touching the service files next to them. Deletion is done with the built-in -delete placed at the end: placed earlier, it would fire before the filters.

What's checked

  1. old dumps deleted
  2. fresh dumps in place
  3. restore.lock in place

What it looks like