- Newest
- Most votes
- Most comments
Hello, I restored my vault inventory and used the command to recover the file "marked for deletion".
I entered the ID in the command but it didn't return anything.
I have a very large list of IDs that I need to recover, will I have to do this manually?
CODE: aws glacier initiate-job --account-id 572450391121 --vault-name XSTG01_TI_9009D03A676B_2 --job-parameters '{"Type": "archive-retrieval", "ArchiveId": "bSjDt8JpE-XH_egrYAJD0kCKcC2ecCyqwphF8HKFE8iG6D__tGRGVBz20f2PTaUJOlsagzhwFc9biYqzqqqF3P9Ze1u2Ofqcu9Vu92x6NbErDJDdBTsbuPw9qcJz7nS0PE9AMlJIVg"}'
Greeting
Hello TI,
Thanks for sharing the details of your S3 Glacier vault and Synology backup issue. Let's work together to clarify the problem and determine how best to recover or address the delayed deletion and data retention concerns. You've clearly outlined the scenario, which helps in troubleshooting effectively. 😊
Clarifying the Issue
From your description and the provided information, the core of the issue lies in how Synology’s Glacier Backup interacts with AWS S3 Glacier. The backup setup didn't have the “Preserve backup files on destination” option enabled, which caused discrepancies between local backups and what was retained in Glacier.
Currently, you have:
- 1.78 TB retained from the last backup.
- 5.22 TB in the "delayed deletion" state, queued for removal by AWS Glacier.
- A total vault size of 7.0 TB as per the last inventory.
The "delayed deletion" mechanism is standard in S3 Glacier, allowing files to be marked for deletion while awaiting final purge. Unfortunately, this mechanism cannot be reversed directly through Synology. Now, you want to restore the full 7.0 TB of data or mitigate further data loss.
Why This Matters
This situation underscores the importance of understanding Glacier’s mechanics and the backup tool settings. Losing critical data could significantly impact your operations, especially if recovery isn’t timely. By addressing this, you can restore vital files and configure future backups to prevent similar issues.
Key Terms
- S3 Glacier Vault: Long-term, low-cost storage for archiving data.
- Delayed Deletion: A retention mechanism in Glacier where deleted files are held temporarily before final removal.
- Preserve Backup Files on Destination: A Synology option that prevents backup synchronization from removing older files.
The Solution (Our Recipe)
Steps at a Glance:
- Retrieve data from Glacier in the "delayed deletion" state. (This must be completed first to proceed.)
- Increase local storage or redirect restores to a new location.
- Reconfigure Synology Glacier Backup to enable "Preserve backup files on destination."
- Verify restored data for integrity and completeness.
- Monitor future backups to avoid discrepancies.
- Consider S3 Glacier costs.
Step-by-Step Guide:
-
Contact AWS Support:
- File a support case with AWS, requesting assistance with files in the "delayed deletion" state.
- Use the S3 Glacier console or AWS CLI to inspect vault records.
AWS CLI Command Example:
aws glacier initiate-job --account-id - \ --vault-name XSTG01_T1_9009D03A676B_2 \ --job-parameters '{"Type": "inventory-retrieval"}'This generates an inventory job to list all files in the vault, including those pending deletion.
-
Restore Data:
- Initiate retrieval of the required files from Glacier using the AWS Management Console or CLI.
- Redirect restored files to a separate location to prevent overwriting existing backups.
AWS CLI Command Example for Data Retrieval:
aws glacier initiate-job --account-id - \ --vault-name XSTG01_T1_9009D03A676B_2 \ --job-parameters '{"Type": "archive-retrieval", "ArchiveId": "example-archive-id"}'
- Reconfigure Synology Backup:
- Enable the “Preserve backup files on destination” option in Synology Glacier Backup settings.
- Set up scheduled backups to prevent manual errors.
- Verify Restored Data:
- Once files are restored, confirm their integrity and completeness.
- Monitor Future Backups:
- Regularly review vault inventory to ensure no discrepancies arise.
- Implement lifecycle rules in S3 Glacier to manage storage costs and retention policies effectively.
-
Consider S3 Glacier Costs
Restoring data from S3 Glacier comes with associated costs that you should account for:
-
Data Retrieval Fees:
- Standard retrieval is the most cost-effective, but it may take several hours to complete.
- Expedited retrieval is faster but incurs higher costs per GB retrieved.
-
Request Fees:
- Inventory retrievals and data restoration requests have associated per-request costs.
-
Storage Costs:
- Data retrieved from Glacier will incur standard S3 storage fees if left in a restored state. Consider transitioning it back to Glacier after use.
-
You can find a breakdown of Glacier costs in the S3 Glacier Pricing Documentation.
Closing Thoughts
This solution addresses restoring your files and avoiding future issues with Synology and S3 Glacier. Be mindful of the costs associated with retrieving data from Glacier, as they can increase for expedited requests.
For further guidance, refer to these AWS resources:
Let us know if you need more help! 😊
Farewell
Best of luck with your recovery efforts, TI. With this approach, you should be able to retrieve your data and safeguard your backup process moving forward. Let us know how it goes! 🌟
Cheers,
Aaron 😊
This answer conflates Amazon S3's Glacier storage classes (https://docs.aws.amazon.com/AmazonS3/latest/userguide/glacier-storage-classes.html and https://aws.amazon.com/s3/pricing/), and the original S3 Glacier service (https://docs.aws.amazon.com/amazonglacier/latest/dev/introduction.html and https://aws.amazon.com/s3/glacier/pricing/). These are very different services.
Immediate Steps to Recover Your Glacier Files
Hi TI,
Thanks for reaching out and sharing your situation—it sounds like you've been through quite a bit with this. Let's focus on actionable steps to help you recover those files as quickly as possible.
-
Verify Inventory Retrieval
Ensure the inventory retrieval job for your Glacier vault has completed successfully. Use this command to check its status:aws glacier describe-job --account-id 572450391121 \ --vault-name XSTG01_TI_9009D03A676B_2 \ --job-id YOUR_JOB_IDIf the job hasn’t completed, wait for it to finish before proceeding.
-
Automate Archive Retrieval for Multiple IDs
To save time, you can automate the process of retrieving multiple files marked for deletion. Save your archive IDs in a file calledarchive_ids.txtand use this script:while read archive_id; do aws glacier initiate-job --account-id 572450391121 \ --vault-name XSTG01_TI_9009D03A676B_2 \ --job-parameters "{\"Type\": \"archive-retrieval\", \"ArchiveId\": \"$archive_id\"}" done < archive_ids.txtThis will queue up retrieval jobs for all the IDs in your list.
-
Check Job Status for Each Archive
Once retrieval jobs are initiated, confirm their status with:aws glacier describe-job --account-id 572450391121 \ --vault-name XSTG01_TI_9009D03A676B_2 \ --job-id YOUR_JOB_ID -
If Retrieval Fails
If these steps don’t work or the files remain inaccessible, contact AWS Support with:- Your vault name
- A list of affected archive IDs
- Any relevant job logs
Explain the urgency of recovering files still in the delayed deletion state.
Final Thoughts
TI, I know this has been a frustrating and complex process, but you're making great progress by taking these steps. Hopefully, this guidance gets you closer to recovering your critical data. If you hit any roadblocks or need more help, feel free to ask—we’re here to support you through this!
Take care, and good luck! 🌟
Best,
Aaron 😊
Relevant content
- asked 2 years ago
- asked a year ago

Hi, would it be possible to re-publish the screenshots in English? Thanks. That will enlarge the circle of people able to support you.