Use Cases

Lifecycle Management Use Cases #

Flexible Retention Policies #

Define TTL for files after they are uploaded. This can be useful for temporary files that are no longer needed after a certain period. No need to set up a separate cron job to delete the files. The lifecycle management feature will automatically delete the files as soon as the TTL expires. The deletion process is O(1) efficient.

Generate Deletion Events on TTL expiry #

This lifecycle management will generate deletion events for files that have expired. These events can be used to trigger other actions, such as sending notifications or updating other systems.

Point-in-Time Recovery (PITR) Use Cases #

Offsite Metadata Backup #

Seaweed Admin can run in a remote location to back up metadata. This can be useful in case of a disaster recovery scenario for filer metadata.

In some extreme cases, the filer metadata store could crash and lose all the metadata. With a remote backup, the metadata can be restored.

Accidental Deletion Recovery #

PITR can be used to recover accidentally deleted files and directories from the Seaweed Admin UI.

Files and directories could be deleted by operational errors or by malicious users or programs. You can browse from the Seaweed Admin UI to find the deleted data and restore it.

Tracking File History #

PITR can be used to track file history. The filer store can be queried to find the file and its history.

Tracking Directory History #

PITR can be used to track directory history. The filer store can be queried to find the directory and its history.