summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-discuss/20120312/006708.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-discuss/20120312/006708.html')
-rw-r--r--zarb-ml/mageia-discuss/20120312/006708.html160
1 files changed, 160 insertions, 0 deletions
diff --git a/zarb-ml/mageia-discuss/20120312/006708.html b/zarb-ml/mageia-discuss/20120312/006708.html
new file mode 100644
index 000000000..d23557b91
--- /dev/null
+++ b/zarb-ml/mageia-discuss/20120312/006708.html
@@ -0,0 +1,160 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-discuss] How to prune urpmi-proxy cache?
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-discuss%40mageia.org?Subject=Re%3A%20%5BMageia-discuss%5D%20How%20to%20prune%20urpmi-proxy%20cache%3F&In-Reply-To=%3C201203121059.37167.fri%40tribun.eu%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="006703.html">
+ <LINK REL="Next" HREF="006716.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-discuss] How to prune urpmi-proxy cache?</H1>
+ <B>Morgan Leijstr&#246;m</B>
+ <A HREF="mailto:mageia-discuss%40mageia.org?Subject=Re%3A%20%5BMageia-discuss%5D%20How%20to%20prune%20urpmi-proxy%20cache%3F&In-Reply-To=%3C201203121059.37167.fri%40tribun.eu%3E"
+ TITLE="[Mageia-discuss] How to prune urpmi-proxy cache?">fri at tribun.eu
+ </A><BR>
+ <I>Mon Mar 12 10:59:37 CET 2012</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="006703.html">[Mageia-discuss] How to prune urpmi-proxy cache?
+</A></li>
+ <LI>Next message: <A HREF="006716.html">[Mageia-discuss] How to prune urpmi-proxy cache?
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#6708">[ date ]</a>
+ <a href="thread.html#6708">[ thread ]</a>
+ <a href="subject.html#6708">[ subject ]</a>
+ <a href="author.html#6708">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>m&#229;ndagen den 12 mars 2012 07.49.42 skrev Maarten Vanraes:
+&gt;<i> Op maandag 12 maart 2012 02:07:46 schreef Morgan Leijstr&#246;m:
+</I>&gt;<i> &gt; Cauldron updates makes urpmi-proxy cache grow pretty big.
+</I>&gt;<i> &gt;
+</I>&gt;<i> &gt; Any idea how to automatically or semi automatically prune
+</I>&gt;<i> &gt;
+</I>&gt;<i> &gt; /var/cache/urpmi-proxy ?
+</I>&gt;<i> &gt;
+</I>&gt;<i> &gt; Something along the line
+</I>&gt;<i> &gt; &quot;delete all but the latest versions of same package&quot;
+</I>&gt;<i> &gt;
+</I>&gt;<i> &gt;
+</I>&gt;<i> &gt; Maybe there is some tool used for similar task that can be used/hacked?
+</I>&gt;<i> &gt;
+</I>&gt;<i> &gt;
+</I>&gt;<i> &gt; Another idea is to compare contents of urpmi-proxy cache against mirror
+</I>&gt;<i> &gt; and delete files not present on mirror. (especially thinking of
+</I>&gt;<i> &gt; cauldron release)
+</I>&gt;<i> &gt;
+</I>&gt;<i> &gt;
+</I>&gt;<i> &gt; ( About urpmi-proxy
+</I>&gt;<i> &gt; <A HREF="https://wiki.mageia.org/en/Urpmi-proxy">https://wiki.mageia.org/en/Urpmi-proxy</A>
+</I>&gt;<i> &gt; <A HREF="https://forums.mageia.org/en/viewtopic.php?f=8&amp;t=1770">https://forums.mageia.org/en/viewtopic.php?f=8&amp;t=1770</A>
+</I>&gt;<i> &gt;
+</I>&gt;<i> &gt; )
+</I>&gt;<i>
+</I>&gt;<i> While this is a feature not present yet, but on the TODO file of
+</I>&gt;<i> urpmi-proxy:
+</I>
+Nice :)
+
+&gt;<i> I've been thinking along these lines:
+</I>&gt;<i>
+</I>&gt;<i> 1) delete older versions of the same file in the same directories
+</I>
+That is the best.
+
+( I wonder if it shold be possible to keep old versions, but if any client
+needs it it will simply be downloaded again, and i guess it will not happen
+very often. skip list seems overkill. )
+
+
+&gt;<i> 2) give a configurable max size and delete the older files if the size is
+</I>&gt;<i> reached
+</I>
+Yes. Size per folder or whole urpmi-proxy, or both?
+
+
+&gt;<i> 3) give a configurable time limit and delete all files older than this one
+</I>&gt;<i> (in a cronjob)
+</I>
+That should be able to be set by folder, i.e i want to give mga1 2 years, (to
+facilitate new installs or reinstalls) but cauldron only a couple months.
+
+
+How would theese be combined?
+
+Idea to alow any content until max size is reached, and then prioritise:
+
+If size of folder is too large, then
+ remove old versions until size is under limit
+ if no more old versions, then
+ remove eldest files until size is under limit
+
+Easiets to apply per folder only
+
+Will be complicated to apply globally
+Maybe by &quot;outer control loop&quot; that adjust down max size per folder if total
+limit is reached. )
+
+So if the OP suddenly realise he need more space for other thinks he can just
+adjust down urpmi-proxy max size and trigger the cleaning, and all he will get
+space easily, prioritising is taken care of.
+
+... i will stop fantasising now...
+
+&gt;<i> that being said, there are a couple of things you can do:
+</I>&gt;<i> A) do a find with a time limit and remove the older files
+</I>
+&gt;<i> B) rsync with a mirror (with --delete option)
+</I>
+It must not download packages not already present, thus:
+
+&gt;<i> C) rsync with a mirror (but find some option to only delete the removed
+</I>&gt;<i> files and nothing else)
+</I>
+&gt;<i> for A) i likely can make a quick shell script to do that, but i think
+</I>&gt;<i> rsyncing with could be the quickest way...
+</I>&gt;<i>
+</I>&gt;<i> which would you prefer?
+</I>
+C - with some check so it do not remove all files if the mirror have some
+problem or is offline making it look completely empty....
+
+
+For the imminent need i simply opened the folders in GIU file browser, sorted
+on size and manually clicked the old version of the 20 largest packages in
+each folder, saved a gigabyte.
+
+So i am good for now.
+Just thinking about the future for me and other users.
+
+--
+Morgan Leijstr&#246;m
+</PRE>
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="006703.html">[Mageia-discuss] How to prune urpmi-proxy cache?
+</A></li>
+ <LI>Next message: <A HREF="006716.html">[Mageia-discuss] How to prune urpmi-proxy cache?
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#6708">[ date ]</a>
+ <a href="thread.html#6708">[ thread ]</a>
+ <a href="subject.html#6708">[ subject ]</a>
+ <a href="author.html#6708">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://www.mageia.org/mailman/listinfo/mageia-discuss">More information about the Mageia-discuss
+mailing list</a><br>
+</body></html>