I have this script to delete old backup files older than 15 days
"find $path -type f -mmin +".(60 * 24 * $expire_days)." -name '*.tar.*' -delete"
After that I want to keep only 1 backup file per day after 10 days.. How to do that? The backup process runs multiple times a day and creates 4-5 files per day