Skip to content

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

BackendBest forTutorial
Local diskSingle-node setups, NAS, small teams, minimum dependenciesFor now, see Storage Policies
S3 / MinIO / R2Object storage, large files, external buckets, cloud storageS3 / MinIO / R2
Follower nodeThe control plane stays on the primary node, while real objects are written to another AsterDrive nodeFollower Node Storage Policy

General Configuration Flow

text
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 account

Do 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:

  1. Create a new backend policy
  2. Create a test policy group
  3. Bind one test user or test team
  4. Run through upload, download, sharing, deletion, and restore
  5. 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.

Released under the MIT License