fixed backup rotation error - fix from Gotham branch