more robust datetime checking in backups