mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
Also purge like and announce index backups.
This commit is contained in:
parent
46f2e324d8
commit
e362dfc356
1 changed files with 10 additions and 0 deletions
10
data.c
10
data.c
|
@ -2744,6 +2744,16 @@ void purge_server(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* delete index backups */
|
||||||
|
xs *specb = xs_fmt("%s/" "*.bak", v);
|
||||||
|
xs *bakfs = xs_glob(specb, 0, 0);
|
||||||
|
|
||||||
|
p2 = bakfs;
|
||||||
|
while (xs_list_iter(&p2, &v2)) {
|
||||||
|
unlink(v2);
|
||||||
|
srv_debug(1, xs_fmt("purged %s", v2));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue