From a25b63e2dfe319cb5446abec62c5c8259d1abcb5 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Tue, 2 Aug 2016 15:44:09 +0000 Subject: [PATCH] cmd/syncthing: Delete old format indexes after a while (fixes #3468) GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3469 --- cmd/syncthing/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index 17cf1281..0c013abe 100644 --- a/cmd/syncthing/main.go +++ b/cmd/syncthing/main.go @@ -1121,6 +1121,8 @@ func cleanConfigDirectory() { "panic-*.log": 7 * 24 * time.Hour, // keep panic logs for a week "audit-*.log": 7 * 24 * time.Hour, // keep audit logs for a week "index": 14 * 24 * time.Hour, // keep old index format for two weeks + "index-v0.11.0.db": 14 * 24 * time.Hour, // keep old index format for two weeks + "index-v0.13.0.db": 14 * 24 * time.Hour, // keep old index format for two weeks "index*.converted": 14 * 24 * time.Hour, // keep old converted indexes for two weeks "config.xml.v*": 30 * 24 * time.Hour, // old config versions for a month "*.idx.gz": 30 * 24 * time.Hour, // these should for sure no longer exist