Skip to content

Garbage Collection

Gerrit Gogel edited this page Jul 27, 2024 · 2 revisions

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_seafile-server_1 is the name of the container running seafile-server:

docker exec -it seafile_seafile-server_1 /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