forked from pzs-ng/pzs-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.datacleaner
41 lines (33 loc) · 1.37 KB
/
README.datacleaner
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
datacleaner - short description:
--------------------------------
datacleaner is a simple tool that recursively cleans out unused zipscript-c
data.
datacleaner - how to use:
-------------------------
datacleaner run under chroot, which means you have several posibilities on
how to run it. The best way is to run it once a day, as root using crontab.
-----
0 2 * * * /sbin/chroot /glftpd /bin/datacleaner >/dev/null 2>&1
-----
replace path to chroot, and your glftpd rootdir accordingly.
The other ways to use it is as a site command,
-----
site_cmd ZSCLEAN /bin/datacleaner
custom-zsclean 127ABCD
-----
or as a cscript to.
-----
cscript RMD post /bin/datacleaner
cscript SITE[:space:]WIPE post /bin/datacleaner
-----
Using it as a cscript may, or may not be such a great idea, since it will
search the entire directory-tree under ftp-data/pzs-ng/site/* and check
to see if the corresponding dir exists under site/*, ie, it can take time.
datacleaner - why:
------------------
Why use it? Simple - the zipscript stores race-data in a 'mirror' of your
site tree - after a while, this gets *huge*. Weird problems can occur when
your computer runs out of storage, or when the filesystem gets too many
files. You will also notice weird output on dupe uploads, ie, a release
that was uploaded, has been deleted, and is uploaded anew.
- Team PZS-NG