Skip to content
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

MIAB Maintenance / Restore Documentation for S3 could be enhanced to avoid confusion #2391

Open
snrkl opened this issue May 16, 2024 · 0 comments

Comments

@snrkl
Copy link

snrkl commented May 16, 2024

Docs covering restoration from s3 (https://mailinabox.email/maintenance.html) have code snippets for the duplicity command for restoring a MIAB install from an S3 bucket:

Amazon S3 backups

If your backups are stored in Amazon S3, get your account credentials handy and then run a duplicity restore:

export AWS_SECRET_ACCESS_KEY=paste your AWS secret access key here
export PASSPHRASE=$(cat your_backup_secret_key_file.txt)
sudo -E duplicity restore --force s3://s3.amazonaws.com/your-bucket-name/your-backup-path/ ```

The s3:// URI example is misleading, as the S3 URI does not need a FQDN. If you construct a URI in the pattern of the example, it will return errors such as:

Attempt of list Nr. 1 failed. ClientError: An error occurred (403) when calling the HeadBucket operation: Forbidden
Attempt of list Nr. 2 failed. AttributeError: 'NoneType' object has no attribute 'objects'

More details of the error can be seen in forum posts showing that people hit these errors all the time, following the provided documentation.

The documentation could be updated to reflect the real nature of the s3:// URIs.

Amazon S3 backups

If your backups are stored in Amazon S3, get your account credentials handy and then run a duplicity restore:

export AWS_SECRET_ACCESS_KEY=paste your AWS secret access key here
export PASSPHRASE=$(cat your_backup_secret_key_file.txt)
sudo -E duplicity restore --force s3://your-bucket-name/your-backup-path/ ```

Additionally, the docs could reference the S3 tools (https://console.aws.com) available to copy the needed URIs from the S3 web administration interface:

Screenshot 2024-05-16 at 21 41 02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant