Skip to content

Garbage Collection

Gerrit Gogel edited this page Nov 29, 2022 · 1 revision

Seafile has a block-based storage backend. This means that every file is associated with one or many blocks. If a file is permanently deleted from the trash bin, those blocks need to be cleared in order to free disk space. This process is called garbage collection.

You can manually run the garbage collection with docker exec, where seafile-server is the name of the container running seafile-server:

docker exec -it seafile-server /scripts/gc.sh

You can schedule a cron job for garbage collection, by adding the following environment variable to seafile-server:

- GC_CRON=0 6 * * SUN

This would run the garbage collection every Sunday at 6 AM.

Clone this wiki locally