This finds and deletes the oldest snapshot with a description “Weekly backup” (you’ll need to change that if your automated backup script generates a different description), while always keeping the two newest snapshots. If you want to keep more snapshots, change the sed command: changing it from sed 1,2d to sed 1,5d will keep the five most recent snapshots instead of the two most recent.