Skip to content

How does AWS Backup service handle time period specification for Timestream in case of restoration of select data?

0

The documentation here: https://docs.aws.amazon.com/timestream/latest/developerguide/backups-how-it-works.html Reads: "You can either restore the entire data from your backup, or configure the table retention settings to restore select data"

As I understood this is done via specification of period with timestamps that I want to be restored.

Now, what happens in this scenario? Day 1: Full backup Day 2: Incremental backup 1 Day 3: Some records were added into magnetic storage for day 1. Incremental backup 2

If I now choose to restore data From day 1 to day 2, will my new table also include records added on day 3 as part of 2nd incremental backup?

asked 2 years ago208 views

1 Answer
0

When restoring select data from a Timestream backup using AWS Backup, the process is based on the retention settings you specify rather than directly selecting a time range. The restoration process works as follows:

  1. You determine the earliest timestamp of the data you want to restore.
  2. You calculate the difference between this earliest timestamp and the current time.
  3. You set the memory store retention period (for recent data).
  4. You set the magnetic store retention period to cover the remaining time span.

In your specific scenario:

If you want to restore data from Day 1 to Day 2, you would need to set the retention periods accordingly. However, it's important to note that the restoration process doesn't strictly limit the data to the exact time range you specify. Instead, it restores all data that falls within the configured retention periods.

In this case, if you set the retention periods to cover Day 1 to Day 2, the restored table would indeed include the records added on Day 3 for Day 1, as these are part of the most recent backup (Incremental backup 2). This is because AWS Backup for Timestream focuses on the state of the data at the time of restoration, not the state at a specific point in the past.

It's worth noting that you are charged for restoring the entire backup, regardless of the retention periods you set. However, once the restore is completed, your restored table will only contain the data that falls within the configured retention periods.

This approach allows for flexibility in data restoration while maintaining the integrity and completeness of the time series data, ensuring that any late-arriving data or updates to historical records are included in the restoration.
Sources
Backing up and restoring Timestream tables: How it works - Amazon Timestream
Restoring a backup of an Amazon Timestream table - Amazon Timestream

answered 2 years ago

  • What if modifications on day 3 are unwanted? Is it impossible to restore a Timestream table to a day 2 state then?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.