2 / 6
Aug 2023

Hi there.

I think there is a mistake on this page.

It clearly says in the documentation that point in time backups expects number of milliseconds. But the example shows the UNIX timestamp in seconds.

Based on my own usage of the CLI, I actually think the example is correct and the documentation/naming of the option is wrong. The atlas backup restore start pointInTime does actually expect the epoch to be in seconds.

Btw, if you actually provide in milliseconds, you get this error:

POST: HTTP 400 (Error code: "INVALID_JSON_ATTRIBUTE") Detail: Received JSON for the pointInTimeUTCSeconds attribute does not match expected format. Reason: Bad Request. Params: [pointInTimeUTCSeconds]

Hi @Alex_Bjorlig,

Thanks for raising this one. I’ll just run a quick test on my own system to verify the expected measurement of time unit and then work with the team to have this updated to match.

Regards,
Jason

Hi @Alex_Bjorlig,

Just to double check, can you provide the atlas cli version you’re using and the command you used to get this error:
Please redact the specific project ID’s and any other sensitive information before posting here

There is a ticket now logged for this which I am monitoring and will update here when the appropriate changes are made.

Regards,
Jason

Sure:

atlascli version: 1.10.0 git version: homebrew-release Go version: go1.20.6 os: darwin arch: arm64 compiler: gc

The command is

atlas backup restore start pointInTime --clusterName ${clusterName} --pointInTimeUTCMillis ${UTC_SECONDS!} --targetClusterName ${clusterName} --targetProjectId ${projectIdProduction} --output json
1 month later

Closed on Oct 1, 2023

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.