Backing up files in S3 Object Storage protects valuable data from accidental deletion, unwanted changes, application errors, or data loss. A backup is a separate copy of your files that you can use to recover original data when you need it.
Just because you have files in a Space does not mean you have an independent backup. The ability to recover a deleted or overwritten file will depend on the storage service’s versioning, backup and recovery capabilities.
Decide which files and data you need to keep. These could include:
Images. Videos. Documents.
Uploading applications
Assets for websites
Exported reports & archives
Configuration files (object-based
For application data, check if you need to back up related databases or configuration settings separately.
The independent backup should be stored separately from the original files.
Depending on the tools that you have, you can make a backup using:
Downloading files to a secure computer or local server .
Copying objects to another Space.
Copying files to another storage location via an S3-compatible client or backup application.
Scheduling automated backups with a supported application or script.
For critical data, consider having a copy in a separate storage account or location. This can help reduce the risk of losing both the original and backup at the same time in the same incident.
Once you have created a backup, verify that the files were copied successfully.
Check that:
All we expected to see are there files.
File sizes are reasonable, comparable to the originals.
You can download and open important files.
Authorised persons have access to the backup location.
The backup process did not skip any files or report any errors .
For critical data, do a test restore periodically to ensure that the backup can be used.
Restore is the process of copying backed-up files back to where they are needed.
Find the backup that has the files you want to recover. Choose a copy that was saved prior to the deletion, overwrite, or other problem.
If you used the backup method, download the files from the backup location or copy them back into the original Space.
You can restore files to their original object keys or to a different location for review prior to replacing existing files.
Verify that the files are present, accessible and usable once restored. If an application relies on these files, ensure it is referencing the correct object keys and URLs.
Do not overwrite existing files until you have verified that the backup contains the correct versions.
The method of recovery depends on the storage features enabled before the incident.
If you have an offline backup: Copy the files you need from the backup into the wanted directory.
If the object is versioned: Depending on the versioning and retention handling of the storage service, earlier versions may be recoverable.
If no backup or recoverable copy exists: The data that has been deleted or overwritten may not be recoverable. Call your storage provider immediately to see if there are any recovery options.
Deleting a file from the panel doesn’t necessarily move it to a recycle bin. This behaviour is dependent on the storage service and panel.
How often you back up depends on how often your files change, and how much data you’re willing to lose.
Files that change frequently: Back up daily or as often as necessary.
Files that are updated periodically: Backup after major changes or on a regular schedule.
Critical application data: Keep a documented backup schedule and regularly test restorations.
Maintain older backup copies for a reasonable time . Undesired changes or deletions will not be instantly copied into every backup .
Keep at least one backup off-site from original data.
Limit access to backup files and credentials.
Where available and appropriate, use versioning or retention features.
Make sure all files have been copied, don’t assume all files have been copied.
Restores on schedule test.
Watch automated backup jobs for errors.
Document the restoration process so that it can be followed during an incident.
Note: You are able to make another copy by copying files to another Space, but that doesn’t guard against every risk. If both copies are deletable with the same credentials, consider using separate access restrictions or a different independent backup location for greater protection.