-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore backup folder #2100
Comments
JSON description of a non-working backup instance. This suggests the role assignment may be missing the necessary permissions. {
"properties": {
"friendlyName": "BlobBackupSensitiveData",
"dataSourceInfo": {
"resourceID": "/subscriptions/3f1a8e26-eae2-4539-952a-0a6184ec248a/resourceGroups/shm-daimyo-sre-hojo-rg/providers/Microsoft.Storage/storageAccounts/shdaisrehojsensitivedata",
"resourceUri": "/subscriptions/3f1a8e26-eae2-4539-952a-0a6184ec248a/resourceGroups/shm-daimyo-sre-hojo-rg/providers/Microsoft.Storage/storageAccounts/shdaisrehojsensitivedata",
"datasourceType": "Microsoft.Storage/storageAccounts/blobServices",
"resourceName": "shdaisrehojsensitivedata",
"resourceType": "Microsoft.Storage/storageAccounts",
"resourceLocation": "uksouth",
"objectType": "Datasource"
},
"policyInfo": {
"policyId": "/subscriptions/3f1a8e26-eae2-4539-952a-0a6184ec248a/resourceGroups/shm-daimyo-sre-hojo-rg/providers/Microsoft.DataProtection/backupVaults/shm-daimyo-sre-hojo-bv-backup/backupPolicies/backup-policy-blobs"
},
"protectionStatus": {
"status": "ProtectionError",
"errorDetails": {
"message": "Appropriate permissions to perform the operation is missing.",
"recommendedAction": [
"Grant appropriate permissions to perform this operation as mentioned at https://aka.ms/UserErrorMissingRequiredPermissions and retry the operation."
],
"code": "UserErrorMissingRequiredPermissions",
"target": "",
"isRetryable": false,
"isUserError": false,
"properties": {
"ActivityId": "dac6e9f0-196b-4a88-934b-7452a078d301"
}
}
},
"currentProtectionState": "ProtectionError",
"protectionErrorDetails": {
"message": "Appropriate permissions to perform the operation is missing.",
"recommendedAction": [
"Grant appropriate permissions to perform this operation as mentioned at https://aka.ms/UserErrorMissingRequiredPermissions and retry the operation."
],
"code": "UserErrorMissingRequiredPermissions",
"target": "",
"isRetryable": false,
"isUserError": false,
"properties": {
"ActivityId": "dac6e9f0-196b-4a88-934b-7452a078d301"
}
},
"provisioningState": "Succeeded",
"objectType": "BackupInstance"
},
"id": "/subscriptions/3f1a8e26-eae2-4539-952a-0a6184ec248a/resourceGroups/shm-daimyo-sre-hojo-rg/providers/Microsoft.DataProtection/backupVaults/shm-daimyo-sre-hojo-bv-backup/backupInstances/backup-instance-blobs",
"name": "backup-instance-blobs",
"type": "Microsoft.DataProtection/backupVaults/backupInstances"
} |
OK, the following things are needed for backup to work (see here)
Some questions @JimMadge:
Depending on what we think, I'll either write something minimal that could target v5.0.0 or make a more major change that targets v5.1.0 |
I think this means we cannot backup those. HNS is required for NFSv3 and I think storage v2 doesn't support NFSv3. I think we shouldn't backup My guess would be we want to backup,
If we are going to use a command line tool instead of Azure resources. I think we should go with something like borg which will handle encryption, de-duplication, compression. |
I'm suggesting using a command line tool to copy the files from a storage account that we can't back up (e.g. things we're mounting over NFS) into a storage account that we can back up. I think we probably want the backup account to maintain the file structure of the things we're backing up, so we can easily restore single files or folders from backup. I could be convinced that it's better to store binary dumps from an archiving tool if there's a sensible restore-from-backup workflow that doesn't involve admins trying to run commands through the serial console! |
Oh I see. I think that would still require some manual intervention though. If we had It feels more robust to have a one step process like I'm sure we could have a CLI entrypoint which runs the restore commands. |
Here are some relevant DSPT requirements:
I think Azure Backup meets the last one, but if we use |
We should be careful with that, I think there would often be a legal obligation to not transfer the the data outside of our network. This is one of the places where I feel that DSPT wasn't designed for TREs. I think it is talking about off site backup as in "If your building burned down, how would you make sure you don't loose everyone's medical records". However we don't expect to archive or curate data. We expect to permanently delete everything soon. In our case, I think the equivalent of offsite is "If you tear down the workspaces and storage accounts, will you also loose the backups" and "If the datacentre burns down would you loose the backups". We could achieve that by using different resources and redundant storage. |
I was assuming this means that we'd need to either explicitly store backups at another datacentre location or use a very high redundancy storage account SKU. |
Yes I think that is sensible and best practice. |
Closing as superseded by #2270 |
✅ Checklist
🍓 Suggested change
The v4 release series had a
backup
folder - we should do the same.🚂 How could this be done?
The text was updated successfully, but these errors were encountered: