cmd/syncthing: Delete old format indexes after a while (fixes #3468)

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3469
This commit is contained in:
Jakob Borg 2016-08-02 15:44:09 +00:00
parent ffe7a2fcd7
commit a25b63e2df
1 changed files with 2 additions and 0 deletions

View File

@ -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