raid-snapshot script adding implementation of --retain-periods. handles snapshot expiry