This repository was archived by the owner on Jul 24, 2025. It is now read-only.
Description Issue
Currently public-files space growth to 6.5GB
ncelp@dlibrailsprod0:/opt/york/digilib/ncelp/public-files$ ls -alh
total 3.2G
drwxrwxr-x 17 ncelp www-data 4.0K Dec 3 03:20 .
drwxr-xr-x 4 ncelp www-data 4.0K Dec 2 15:14 ..
drwxrwxr-x 2 ncelp ncelp 4.0K Nov 27 03:17 0r967385d
-rw-rw-r-- 1 ncelp ncelp 153M Dec 3 03:18 0r967385d.zip
drwxrwxr-x 2 ncelp ncelp 4.0K Nov 23 03:17 6q182k249
-rw-rw-r-- 1 ncelp ncelp 237M Nov 26 09:32 6q182k249.zip
drwxrwxr-x 2 ncelp ncelp 4.0K Nov 21 17:09 b8515n48h
-rw-rw-r-- 1 ncelp ncelp 73M Dec 3 03:15 b8515n48h.zip
drwxrwxr-x 2 ncelp ncelp 4.0K Nov 26 03:17 bc386j35z
-rw-rw-r-- 1 ncelp ncelp 2.0M Dec 3 03:15 bc386j35z.zip
drwxrwxr-x 2 ncelp ncelp 4.0K Nov 21 17:07 hm50tr858
-rw-rw-r-- 1 ncelp ncelp 17M Dec 3 03:15 hm50tr858.zip
drwxrwxr-x 2 ncelp ncelp 4.0K Nov 21 17:08 jd472w54s
-rw-rw-r-- 1 ncelp ncelp 35M Dec 3 03:15 jd472w54s.zip
drwxrwxr-x 2 ncelp ncelp 4.0K Dec 3 03:19 rf55z781b
-rw-rw-r-- 1 ncelp ncelp 424M Dec 3 03:20 rf55z781b.zip
drwxrwxr-x 2 ncelp ncelp 4.0K Nov 21 17:09 rv042t23n
-rw-rw-r-- 1 ncelp ncelp 23M Dec 3 03:15 rv042t23n.zip
drwxrwxr-x 2 ncelp ncelp 4.0K Nov 26 03:18 td96k2674
-rw-rw-r-- 1 ncelp ncelp 288M Dec 3 03:17 td96k2674.zip
drwxrwxr-x 2 ncelp ncelp 4.0K Nov 21 17:09 tq57nr10t
-rw-rw-r-- 1 ncelp ncelp 2.0M Dec 3 03:15 tq57nr10t.zip
drwxrwxr-x 2 ncelp ncelp 4.0K Nov 25 03:17 vx021f11c
-rw-rw-r-- 1 ncelp ncelp 551M Nov 26 09:34 vx021f11c.zip
drwxrwxr-x 2 ncelp ncelp 4.0K Nov 28 03:17 w0892b125
-rw-rw-r-- 1 ncelp ncelp 352M Dec 3 03:16 w0892b125.zip
drwxrwxr-x 2 ncelp ncelp 4.0K Nov 21 17:09 xg94hp60j
-rw-rw-r-- 1 ncelp ncelp 522M Nov 22 03:17 xg94hp60j.zip
drwxrwxr-x 2 ncelp ncelp 4.0K Nov 27 03:17 xk81jk523
-rw-rw-r-- 1 ncelp ncelp 84M Dec 3 03:17 xk81jk523.zip
drwxrwxr-x 2 ncelp ncelp 4.0K Dec 3 03:18 zc77sq16m
-rw-rw-r-- 1 ncelp ncelp 418M Dec 3 03:18 zc77sq16m.zip
ncelp@dlibrailsprod0:/opt/york/digilib/ncelp/public-files$ du -hs ./
6.5G ./
Ideal behaviour
Improve zipfile rake tasks to avoid unwanted disk usage:
After a collection is compressed to zip file the original collection folder is removed
Produce only zip files on a subcollection level. Do not compress parent collections. For example, the rake task should not create zip file for this parrent collection f1881m10k and this midlevel parent collection vx021f11c e.g. C1-> C2 ->C3 -> Resources. Only C3.zip file should be created.
Reactions are currently unavailable
Issue
Currently public-files space growth to 6.5GB
Ideal behaviour
Improve zipfile rake tasks to avoid unwanted disk usage: