I'm trying to restore data in EFS from recovery points managed by AWS Backup. It seems AWS Backup does not support destructive restores and will always restore to a directory in the target EFS file system, even when creating a new one.
I would like to sync the data extracted from such a recovery point to another volume, but right now I can only do this manually as I need to lookup the directory name that is used by the start-restore-job
operation (e.g. aws-backup-restore_2022-05-16T11-01-17-599Z
), as stated in the docs:
You can restore those items to either a new or existing file system. Either way, AWS Backup creates a new Amazon EFS directory (aws-backup-restore_datetime) off of the root directory to contain the items.
Further looking through the documentation I can't find either of:
- an option to set the name of the directory used
- the value of directory name returned in any call (either
start-restore-job
ordescribe-restore-job
)
I have also checked how the datetime
portion of the directory name maps to the creationDate
and completionDate
of the restore job but it seems neither match (completionDate
is very close, but it's not the exact same timestamp).
Is there any way for me to do one of these two things? Both of them missing make restoring a file system from a recovery point in an automated fashion very hard.