Skip to content

Bucket issues - Glacier S3 (Synology)

1

Hello everyone. I would like some help from AWS engineers on call. I have the Glacier S3 application on my Synology for long-term retention backups... When I created the Backup, I had not activated the "Preserve backup files at the destination" option. As the image shows, there are 5.22 TB of files to delete. How do I reverse this?

Enter image description here


Synology engineers got into a discussion after long days of troubleshooting the issue and they told me this:

"Delayed deletion is a mechanism of S3 Glacier. When a file is deleted, it enters the delayed deletion state, where it is retained for a period of time before being permanently deleted.

The backup mechanism of Synology Glacier Backup involves backing up the file status in the backup folder at the time of backup execution to S3 Glacier for storage. Glacier Backup does not have a versioning feature. Therefore, this situation may occur if there is a discrepancy between the data originally stored in the cloud and the data from the previous backup execution. This discrepancy may result in the deletion of modified files, leaving only 1.78 TB of files retained during the backup, while 5.22 TB of data was deleted during the current backup execution. After deletion, due to the mechanism of S3 Glacier, the deleted files enter the delayed deletion state and wait for the backup to be deleted. let S3 servers handle the deletion.

The delayed deletion mechanism cannot be controlled by Synology. Based on the current backup status, we can only inform the customer that the current backup size is 1.78TB. Due to the large volume of data, it may take some time to display the relevant backup in the Explorer page."

If you cannot find the desired data in the existing 1.78TB backup, you will need to contact S3 to see if it is possible to restore the files from the late deletion.

Please let me know if you have any other questions.

Regarding your concern about file deletion, the "Preserve backup files on destination" option is essential in cases where you do not want older or deleted files from the source NAS to also be removed from AWS Glacier. If this option was not enabled when setting up your backup job, Synology and AWS mechanisms will operate as documented to synchronize changes, including file deletions. Detailed information about the settings including this feature can be found in our Glacier Backup documentation here: Synology Glacier Backup Documentation (provided previously).

If space permits, you can initiate a restore from AWS Glacier to your NAS. This will recover your backup files for review and preservation. However, since your NAS storage is currently full, restoring to the original destination may not work unless the storage capacity is increased.

If you need further assistance, the next step is to contact AWS.

Thank you for your understanding.


I really need to recover files from my S3 Glacier vault, does anyone know of a way to reverse this situation? And restore all my files?

Enter image description here

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

asked a year ago93 views
3 Answers
1

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?

Insira a descrição da imagem aqui

CODE: aws glacier initiate-job --account-id 572450391121 --vault-name XSTG01_TI_9009D03A676B_2 --job-parameters '{"Type": "archive-retrieval", "ArchiveId": "bSjDt8JpE-XH_egrYAJD0kCKcC2ecCyqwphF8HKFE8iG6D__tGRGVBz20f2PTaUJOlsagzhwFc9biYqzqqqF3P9Ze1u2Ofqcu9Vu92x6NbErDJDdBTsbuPw9qcJz7nS0PE9AMlJIVg"}'

answered 10 months ago
0

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:

  1. Retrieve data from Glacier in the "delayed deletion" state. (This must be completed first to proceed.)
  2. Increase local storage or redirect restores to a new location.
  3. Reconfigure Synology Glacier Backup to enable "Preserve backup files on destination."
  4. Verify restored data for integrity and completeness.
  5. Monitor future backups to avoid discrepancies.
  6. Consider S3 Glacier costs.

Step-by-Step Guide:

  1. 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.


  1. 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"}'

  1. Reconfigure Synology Backup:
    • Enable the “Preserve backup files on destination” option in Synology Glacier Backup settings.
    • Set up scheduled backups to prevent manual errors.

  1. Verify Restored Data:
    • Once files are restored, confirm their integrity and completeness.

  1. 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.

  1. 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 😊

answered a year ago
0

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.

  1. 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_ID

    If the job hasn’t completed, wait for it to finish before proceeding.

  2. 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 called archive_ids.txt and 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.txt

    This will queue up retrieval jobs for all the IDs in your list.

  3. 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
  4. 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 😊

answered 10 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.