Archival Methods¶
When a manufacturing logbook is archived, Enture saves a PDF of each completed entry. An archival method is your organisation's own storage where those PDFs are saved as well. At the moment this is an AWS S3 bucket.
You can add more than one archival method, and choose which logbooks use each one.
Add an archival method¶
You need engineering access.
- Open Accounts → Organisation.
- Under Archival methods, click Add archival method.
- Fill in the form:
| Field | What to enter |
|---|---|
| Name | A name you will recognise, for example Plant 1 bucket. |
| Description | Optional. |
| Type | AWS S3. |
| Bucket | The bucket name, for example my-company-logbooks. |
| Region | The bucket's AWS region, for example ap-south-1. |
| Access key ID and Secret access key | An AWS access key that can write to the bucket (permission s3:PutObject). Your AWS administrator can create one. |
| Folder prefix | Optional. A folder inside the bucket, for example enture/logbooks. |
- Click Test (see below), then Save.
The secret access key is never shown again after saving. When you edit a method, leave the key fields blank to keep the saved keys.
Use a key for this bucket only
Give the access key permission to write to this one bucket and nothing else.
Test the connection¶
Before you press Test, the form shows the file it will write and the text inside it:
- File:
<bucket>/<folder prefix>/enture-connection-test.txt - Text: Enture archival connection test for your organisation, written on the date and time of the test. You can delete this file.
If the test works, you see where the file was written. If not, you see the reason, for example a wrong region, a wrong secret access key, or a key that is not allowed to write to the bucket. Testing does not save anything.
Where the PDFs go¶
Each PDF is saved in the same folders as on OneDrive, inside the folder prefix:
<folder prefix>/<Organisation>/<Financial year>/<Month>/<Section>/logbook/<Logbook name>/<Date>/<file>.pdf
A logbook in more than one section is saved once in each section's folder.
Use an archival method for a logbook¶
- Open the logbook's settings (Edit on the logbook).
- Under Archival methods, click Add, tick the methods and click Add again.
You can add methods only after the logbook has been created. To stop using a method for a logbook, click the bin icon next to it.
With Archive on or off¶
- Archive on: each completed entry is saved to Enture's storage (and your OneDrive, if set up) as before, and to every archival method added to the logbook.
- Archive off: each completed entry is saved only to the logbook's archival methods.
Either way, the same entries are saved: completed entries submitted in the last 90 days that have not been saved yet. Entries that were already archived before you added a method are not copied to it.
If saving to a method fails¶
If a PDF can't be saved to a method (for example the key has expired), nothing else is affected. The other methods and Enture's own archive still go ahead. The failed entry is tried again at every archival run, for up to 90 days after it was submitted.
The logbook's Archival methods list shows how many entries are waiting to be retried and the last reason, and when an entry was last saved.
Delete an archival method¶
Click the bin icon next to the method in Accounts → Organisation. It is removed from every logbook that uses it. PDFs already saved in your bucket stay there.