summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2012-November/019806.html
blob: 1e4f97c5506d70eccdc3ac897b1693337b3a51e5 (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
100
101
102
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] Barry's cronsync script - Bugs
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Barry%27s%20cronsync%20script%20-%20Bugs&In-Reply-To=%3C50991934.2020702%40zen.co.uk%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="019782.html">
   <LINK REL="Next"  HREF="019808.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] Barry's cronsync script - Bugs</H1>
    <B>Barry Jackson</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Barry%27s%20cronsync%20script%20-%20Bugs&In-Reply-To=%3C50991934.2020702%40zen.co.uk%3E"
       TITLE="[Mageia-dev] Barry's cronsync script - Bugs">zen25000 at zen.co.uk
       </A><BR>
    <I>Tue Nov  6 15:05:40 CET 2012</I>
    <P><UL>
        <LI>Previous message: <A HREF="019782.html">[Mageia-dev] Barry's cronsync script - Bugs
</A></li>
        <LI>Next message: <A HREF="019808.html">[Mageia-dev] Barry's cronsync script - Bugs
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#19806">[ date ]</a>
              <a href="thread.html#19806">[ thread ]</a>
              <a href="subject.html#19806">[ subject ]</a>
              <a href="author.html#19806">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>On 05/11/12 19:36, Johnny A. Solbu wrote:
&gt;<i>
</I>&gt;<i> I have problems customizing it for my own use. (I'm testiing manually for the time being)
</I>&gt;<i> It won't exclude the things I say it should exclude.
</I>&gt;<i> My copy have this line:
</I>&gt;<i> ==
</I>&gt;<i> myexcludes=&quot;--exclude={debug/,backports_testing,updates_testing/}&quot;
</I>&gt;<i> ==
</I>&gt;<i> It does Not exclude them. (Note that I am excluding all debug and _testing folders, but Not SRPMS)
</I>&gt;<i> That line used in my manuall rsync command, works. They are excluded.
</I>&gt;<i>
</I>&gt;<i> So, why won't this work in cronsync?
</I>&gt;<i>
</I>Hi Johnny,
Sorry for delay - I missed the post.
It's your syntax.
This works using your excludes with the syntax in line 20 of this new 
script.

<A HREF="http://paste.kde.org/598076/">http://paste.kde.org/598076/</A>

I fixed another bug and changed it slightly to better display rsync 
errors in the log.
I have not seen any problems recently and it's running every hour. It 
currently keeps a filecount history log as well, but that's just for 
interest and testing.

The problem with your syntax seems to be related to the {} - I don't 
fully understand why, but it causes a pair of ' to be wrapped around the 
--exclude option in the final rsync command :

rsync -rlptgoDhHSn --stats --delete-after --delete-excluded 
--protect-args '--exclude={debug/,backports_testing,updates_testing/}' 
<A HREF="rsync://distrib-coffee.ipsl.jussieu.fr:/pub/linux/Mageia/distrib">rsync://distrib-coffee.ipsl.jussieu.fr:/pub/linux/Mageia/distrib</A> 
/zmrepo/pub/linux/Mageia/

With my syntax it appears like this:-

rsync -rlptgoDhHSn --progress --stats --delete-after --max-delete=1000 
--delete-excluded --protect-args --exclude=debug 
--exclude=backports_testing --exclude=updates_testing 
<A HREF="rsync://distrib-coffee.ipsl.jussieu.fr:/pub/linux/Mageia/distrib">rsync://distrib-coffee.ipsl.jussieu.fr:/pub/linux/Mageia/distrib</A> 
/zmrepo/pub/linux/Mageia/

Regards
Barry
</PRE>


<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="019782.html">[Mageia-dev] Barry's cronsync script - Bugs
</A></li>
	<LI>Next message: <A HREF="019808.html">[Mageia-dev] Barry's cronsync script - Bugs
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#19806">[ date ]</a>
              <a href="thread.html#19806">[ thread ]</a>
              <a href="subject.html#19806">[ subject ]</a>
              <a href="author.html#19806">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>