Storage Policy Backends
What this documentation category covers
These tutorials are organized by backend type: how to prepare the external service, create a storage policy, configure policy group rules, move users or teams over, and verify everything before going live.
AsterDrive has two layers of concepts:
- Storage policy: where files are ultimately written, such as a local disk, S3 / MinIO / R2, or a follower node
- Policy group: which storage policy a user or team upload matches, based on rules
If you only want to understand the overall model, start with Storage Policies.
If you have already decided which backend to connect, use the tutorials here.
Current Tutorials
| Backend | Best for | Tutorial |
|---|---|---|
| Local disk | Single-node setups, NAS, small teams, minimum dependencies | For now, see Storage Policies |
| S3 / MinIO / R2 | Object storage, large files, external buckets, cloud storage | S3 / MinIO / R2 |
| Follower node | The control plane stays on the primary node, while real objects are written to another AsterDrive node | Follower Node Storage Policy |
General Configuration Flow
Prepare the backend service
|
+-- Create a storage policy
|
+-- Test the connection
|
+-- Create or adjust policy group rules
|
+-- Bind users or teams
|
+-- Verify upload / download / sharing with a real accountDo Not Rush Production Traffic
For a new backend, create a separate policy first. Do not directly modify an old policy that is already in use.
Recommended flow:
- Create a new backend policy
- Create a test policy group
- Bind one test user or test team
- Run through upload, download, sharing, deletion, and restore
- After confirming there are no issues, move real users or teams to the new policy group
Do not directly change the real destination for policies that already have files
The local directory, S3 bucket / endpoint / prefix, and follower node binding determine where old files are located. If you change them directly, old files may no longer be found.