How do i stop a restore job that's running for a week.

1

I created a backup job for a bucket that is used as repository for a web page with a cloudfront only policy access. I added a role for the backup to run and performed a backup test run that was sucessfully.

Then I deleted from files and tried to restore them for testing. The first attempt to restore to the same bucket failed because of permissions: This is the error "Status": "FAILED", "StatusMessage": "Cannot restore, as the BucketOwnershipControls of <bucketname> do not allow the use of object ACLs."

I know I am not using ACL but policy to control the access to the bucket, so I think that's fine; so instead of restoring to the same bucket; I created a second job to restore to a new bucket That job is still running since Feb 24th This is how it looks on a CLI list-restore-jobs "CreationDate": "2022-02-24T11:15:33.120000-03:00", "Status": "RUNNING", "PercentDone": "0.00%",

The thing is: There is not "stop-restore-job" command in the CLI to stop it.

So the basic question is:

1 - How do I stop it?

And 2; is the way to go in such scenario to restore to a new or existing bucket instead of the source one?

Thanks.

Gercho
asked 2 years ago1140 views
2 Answers
0

Hello Gercho,

To answer your first question there are a couple of ways to stop the current process: the removal of permissions, turning off versioning, turning off events being sent to Amazon EventBridge, or disabling the EventBridge rules that are put in place by AWS Backup. Once you stop your process it might be in a EXPIRED state. If you want to further delete the job at that point you can follow the steps listed in this article: https://docs.aws.amazon.com/aws-backup/latest/devguide/gs-cleanup-resources.html#cleanup-backups .

For your second question I believe what you are looking for is how to restore your bucket from an AWS backup. The step by step process on how to do so is listed here: https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-s3.html#s3-restore-console .

Thanks!

Eitan_C
answered 2 years ago
0

Hi Gercho,

In response to your first question you can follow these steps using AWS Management Console. These steps are also laid out in resource 1 given below.

  1. Sign in to the AWS Management Console, and open the AWS Backup console at https://console.aws.amazon.com/backup.
  2. In the navigation pane on the left, choose Jobs.
  3. Choose the backup job that you want to stop.
  4. In the backup job details pane, choose Stop.

As for your second question you can follow the steps given below. These steps are also laid out in resource 2 given below.

  1. Sign in to the AWS Management Console, and open the AWS Backup console at https://console.aws.amazon.com/backup.
  2. In the navigation pane, choose Protected resources, and select the Amazon S3 resource ID that you want to restore.
  3. On the Resource details page, you will see a list of recovery points for the selected resource ID. To restore a resource:
    • In the Backups pane, choose the recovery point ID of the resource.
    • In the upper-right corner of the pane, choose Restore.
(Alternatively, you can go to the backup vault, find the recovery point, and then click Actions then click Restore.)
  4. If you are restoring a continuous backup, in the Restore time pane, select either option:
    • Accept the default to restore to the Latest restorable time.
    • Specify date and time to restore.
  5. In the Settings pane, specify whether to Restore entire bucket or perform Item level restore.
    • If you choose Item level restore, you restore up to 5 items (S3 objects) per restore job by specifying each item's S3 URI that uniquely identifies that object.
(For more information about S3 bucket URIs, see Methods for accessing a bucket in the Amazon Simple Storage Service User Guide.)
    • Choose Add item to specify another item to restore.
  6. Choose your Restore destination. You can either Restore to source bucket, Use existing bucket, or Create new bucket.
    • If you choose Use existing bucket, select the destination S3 bucket from the dropdown menu which shows all existing buckets within your current AWS Region.
    • If you choose Create new bucket, type in the new bucket name. The new bucket defaults to S3 versioning enabled. The Block Public Access (BPA) settings will be toggled off by default. You can modify these settings after you create the bucket in S3. 


Resources:

1] https://docs.aws.amazon.com/aws-backup/latest/devguide/stopping-a-backup-job.html

2] https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-s3.html

AWS
answered 8 months ago

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.

Guidelines for Answering Questions