summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-discuss/20120312/006703.html
blob: 851b3e9198d0f61a30678bfa94c39310726c5b08 (plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
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&#246;m:
&gt;<i> Cauldron updates makes urpmi-proxy cache grow pretty big.
</I>&gt;<i> 
</I>&gt;<i> Any idea how to automatically or semi automatically prune
</I>&gt;<i>  /var/cache/urpmi-proxy  ?
</I>&gt;<i> 
</I>&gt;<i> Something along the line
</I>&gt;<i> &quot;delete all but the latest versions of same package&quot;
</I>&gt;<i> 
</I>&gt;<i> 
</I>&gt;<i> Maybe there is some tool used for similar task that can be used/hacked?
</I>&gt;<i> 
</I>&gt;<i> 
</I>&gt;<i> Another idea is to compare contents of urpmi-proxy cache against mirror and
</I>&gt;<i> delete files not present on mirror.  (especially thinking of cauldron
</I>&gt;<i> release)
</I>&gt;<i> 
</I>&gt;<i> 
</I>&gt;<i> ( About urpmi-proxy
</I>&gt;<i> <A HREF="https://wiki.mageia.org/en/Urpmi-proxy">https://wiki.mageia.org/en/Urpmi-proxy</A>
</I>&gt;<i> <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>  )
</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>