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: which storage policy backend files are ultimately written to
  • 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 dependenciesLocal disk
S3 / MinIO / R2Object storage, large files, external buckets, cloud storageS3 / MinIO / R2
Azure Blob StorageAzure Storage accounts, Blob containers, Azure-managed object storageAzure Blob Storage
Tencent COSTencent object storage, COS CI, per-policy native processingTencent COS
OneDriveMicrosoft 365, OneDrive, SharePoint / group drives, Microsoft Graph authorizationOneDrive
SFTPSSH/SFTP file servers, NAS, traditional server directories, server-side streamingSFTP
Follower nodeThe control plane stays on the primary node, while real objects are written to another AsterDrive nodeFollower Node Storage Policy

General Configuration Flow

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, Azure Blob endpoint / container / base path, OneDrive drive / root item / site or group identifiers, SFTP endpoint / base path, 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