This page provides instructions on how to access the report manager's built-in historical reports in a CSV format that are exported to a Cloud Storage bucket. It also provides instructions on how to modify the data retention period of the reporting data.
Modify data retention period
By default, the reporting data for your reports is retained as per the existing retention period defined in the report manager. By default, the retention period is set to one year. With Modify data retention period, you can extend the retention period up to 10 years and modify the retention period between 1 day and 10 years.
If you reduce the data retention period, you won't be able to retrieve the data for the period that has been reduced. For example, changing the data retention period from 10 years to 8 years results in the loss of reporting data for the oldest 2 years.
Use the following instructions to modify data retention period:
- Click the Reports tab and select Export historical reports from the drop-down menu.
- Click Modify data retention period.
- In the Retain data for the field, enter the retention period and select Year, Month, Week, or Day from the drop-down.
- Select the Select to confirm that you would like to modify the data retention period checkbox.
Click Save.
It can take one day for the modified retention period to take effect.
Export historical reports
To export historical reports, you need the following:
- A Cloud Storage bucket. This bucket serves as the destination for the exported report. You can Create a new Cloud Storage bucket or use an existing bucket.
- Assign the Storage Object Creator (
roles/storage.objectCreator
) IAM role to the bucket. This role provides permissions to access to the Cloud Storage bucket where the report is to be exported. Assigning the role to the bucket is a one-time activity. - Be assigned with the Backup and DR Backup User (
roles/backupdr.backupUser
) IAM role to export reports.
Use the following instructions to export historical reports to a Cloud Storage bucket:
- Click the Reports tab and select Export historical reports from the drop-down menu.
- Click the icon and select From and To dates.
From the Report to export section, select reports from one of the following categories that you want to export.
- Audit
- Jobs
- Protection
- Backup plan compliance
- Summary
- Utilization
In the Bucket name field, enter the bucket name that you created to export the built-in reports. If you didn't export a report in the last 90 days, you'll need to re-enter the bucket name.
To assign the permissions to the Cloud Storage bucket, do the following. This role provides access to the Cloud Storage bucket where the report is to be exported.
- Go to the Google Cloud console and click Activate cloud shell.
Copy and paste the command that is displayed in the management console. This role provides permissions to access the Cloud Storage bucket where the report to be exported.
gcloud storage buckets add-iam-policy-binding gs://BUCKET_NAME --member=SERVICE_ACCOUNT --role=roles/storage.objectCreator
Replace the following:
BUCKET_NAME
: the name that is given to storage bucket.SERVICE_ACCOUNT
: the service account associated with storage bucket. For example, [email protected].
After assigning the permissions, go to the management console, and select the Prerequisites checkbox.
Click Export.
Optional: Click View details to view the detailed export status of reports.
The reports are exported to a Cloud Storage Buckets in a CSV format.
Access the exported reports in Cloud Storage bucket
Use the following instructions to access the exported reports in a Cloud Storage bucket:
- In the Google Cloud console, go to the Cloud Storage Buckets page.
- Select the bucket that you have used to export reports.
- Select a report and click Download.