diff options
Diffstat (limited to 'zarb-ml/mageia-discuss/20120312/006703.html')
-rw-r--r-- | zarb-ml/mageia-discuss/20120312/006703.html | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/zarb-ml/mageia-discuss/20120312/006703.html b/zarb-ml/mageia-discuss/20120312/006703.html new file mode 100644 index 000000000..851b3e919 --- /dev/null +++ b/zarb-ml/mageia-discuss/20120312/006703.html @@ -0,0 +1,99 @@ +<!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=%3C201203120749.42517.alien%40rmail.be%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="006701.html"> + <LINK REL="Next" HREF="006708.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[Mageia-discuss] How to prune urpmi-proxy cache?</H1> + <B>Maarten Vanraes</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=%3C201203120749.42517.alien%40rmail.be%3E" + TITLE="[Mageia-discuss] How to prune urpmi-proxy cache?">alien at rmail.be + </A><BR> + <I>Mon Mar 12 07:49:42 CET 2012</I> + <P><UL> + <LI>Previous message: <A HREF="006701.html">[Mageia-discuss] How to prune urpmi-proxy cache? +</A></li> + <LI>Next message: <A HREF="006708.html">[Mageia-discuss] How to prune urpmi-proxy cache? +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#6703">[ date ]</a> + <a href="thread.html#6703">[ thread ]</a> + <a href="subject.html#6703">[ subject ]</a> + <a href="author.html#6703">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>Op maandag 12 maart 2012 02:07:46 schreef Morgan Leijström: +><i> Cauldron updates makes urpmi-proxy cache grow pretty big. +</I>><i> +</I>><i> Any idea how to automatically or semi automatically prune +</I>><i> /var/cache/urpmi-proxy ? +</I>><i> +</I>><i> Something along the line +</I>><i> "delete all but the latest versions of same package" +</I>><i> +</I>><i> +</I>><i> Maybe there is some tool used for similar task that can be used/hacked? +</I>><i> +</I>><i> +</I>><i> Another idea is to compare contents of urpmi-proxy cache against mirror and +</I>><i> delete files not present on mirror. (especially thinking of cauldron +</I>><i> release) +</I>><i> +</I>><i> +</I>><i> ( About urpmi-proxy +</I>><i> <A HREF="https://wiki.mageia.org/en/Urpmi-proxy">https://wiki.mageia.org/en/Urpmi-proxy</A> +</I>><i> <A HREF="https://forums.mageia.org/en/viewtopic.php?f=8&t=1770">https://forums.mageia.org/en/viewtopic.php?f=8&t=1770</A> +</I>><i> ) +</I> +While this is a feature not present yet, but on the TODO file of urpmi-proxy: + +I've been thinking along these lines: + +1) delete older versions of the same file in the same directories +2) give a configurable max size and delete the older files if the size is +reached +3) give a configurable time limit and delete all files older than this one (in a +cronjob) + +that being said, there are a couple of things you can do: +A) do a find with a time limit and remove the older files +B) rsync with a mirror (with --delete option) +C) rsync with a mirror (but find some option to only delete the removed files +and nothing else) + +for A) i likely can make a quick shell script to do that, but i think rsyncing +with could be the quickest way... + +which would you prefer? +</PRE> + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="006701.html">[Mageia-discuss] How to prune urpmi-proxy cache? +</A></li> + <LI>Next message: <A HREF="006708.html">[Mageia-discuss] How to prune urpmi-proxy cache? +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#6703">[ date ]</a> + <a href="thread.html#6703">[ thread ]</a> + <a href="subject.html#6703">[ subject ]</a> + <a href="author.html#6703">[ 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> |