Time Machine saves hourly backups for the past 24 hours, daily backups for the past month, and weekly backups for everything older than a month until the volume runs out of space. At that point, Time Machine deletes the oldest weekly backup (Time Machine).
I'm at the point where I already have the bash script (rsync) which makes backups every hour. The backups are folders named as "2015-01-01 08", where "08" is the hour.
At some point folders older than 24h need to be deleted. So I'm looking for this magic. I guess it will be kind of rm -R some_pattern. How would such a pattern look like?