Skip to content

Commit

Permalink
Merge pull request #59 from skysqlinc/DEV-806-Restore-from-Your-Own-B…
Browse files Browse the repository at this point in the history
…ucket

fix full backup formatting
  • Loading branch information
NedPK authored Sep 27, 2024
2 parents f42171b + e45f140 commit 8e3c83f
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions docs/Backup and Restore/Physical Backup Examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,30 +30,27 @@ Use it on subsequent request, e.g:

curl --location 'https://api.skysql.com/skybackup/v1/backups/schedules' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header "X-API-Key: $API_KEY" \
--data "{
\"backup_type\": \"full\",
\"schedule\": \"once\",
\"service_id\": \"$SERVICE_ID\"
}"
--header 'X-API-Key: $API_KEY' \
--data '{
"backup_type": "full",
"schedule": "once",
"service_id": "$SERVICE_ID"
}'"


- API_KEY : SKYSQL API KEY, see [SkySQL API Keys](https://app.skysql.com/user-profile/api-keys/)
- SERVICE_ID : SkySQL serivce identifier, format dbtxxxxxx. You can fetch the service ID from the Fully qualified domain name(FQDN) of your service. E.g: in dbpgf17106534.sysp0000.db2.skysql.com, 'dbpgf17106534' is the service ID.You will find the FQDN in the [Connect window](https://app.skysql.com/dashboard)

#### Cron Full(physical) Example


curl --location 'https://api.skysql.com/skybackup/v1/backups/schedules'
curl --location 'https://api.skysql.com/skybackup/v1/backups/schedules' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header "X-API-Key: $API_KEY" \
--data "{
\"backup_type\": \"full\",
\"schedule\": \"0 3 * * *\",
\"service_id\": \"$SERVICE_ID\"
}"
--header 'X-API-Key: $API_KEY' \
--data '{
"backup_type": "full",
"schedule": "0 3 * * *",
"service_id": "$SERVICE_ID"
}'"

- API_KEY : SKYSQL API KEY, see [SkySQL API Keys](https://app.skysql.com/user-profile/api-keys/)
- SCHEDULE : Cron schedule, see [Cron](https://en.wikipedia.org/wiki/Cron)
Expand Down

0 comments on commit 8e3c83f

Please sign in to comment.