Arduino Uno deep sleep wake-up with DS3231: from once an hour to several times

Would this code, added richt after the wake-up, do it:

Why do you have two alarms? I think that the one set for every 30 seconds will be waking the Arduino and the alarm desired at the 5 minute intervals will be adjusted ahead and never reached.