Re: [Mageia-dev] Barry's cronsync script - Bugs

2012-11-06 Thread Barry Jackson

On 05/11/12 19:36, Johnny A. Solbu wrote:


I have problems customizing it for my own use. (I'm testiing manually for the 
time being)
It won't exclude the things I say it should exclude.
My copy have this line:
==
myexcludes=--exclude={debug/,backports_testing,updates_testing/}
==
It does Not exclude them. (Note that I am excluding all debug and _testing 
folders, but Not SRPMS)
That line used in my manuall rsync command, works. They are excluded.

So, why won't this work in cronsync?


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.


http://paste.kde.org/598076/

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/}' 
rsync://distrib-coffee.ipsl.jussieu.fr:/pub/linux/Mageia/distrib 
/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 
rsync://distrib-coffee.ipsl.jussieu.fr:/pub/linux/Mageia/distrib 
/zmrepo/pub/linux/Mageia/


Regards
Barry


Re: [Mageia-dev] Barry's cronsync script - Bugs

2012-11-06 Thread Barry Jackson

Damn!!

I left a 'n' (dry run) on the options in the live run section after 
testing on line 148 - just remove it once you are happy with it.

I'll paste it again later.

Barry




Re: [Mageia-dev] Barry's cronsync script - Bugs

2012-11-06 Thread Barry Jackson

On 06/11/12 14:18, Barry Jackson wrote:

Damn!!

No thrice damn!! - I did remove it but from the wrong section (line 109).

Ignore the previous paste as it's dangerous.

This *is* correct.
http://paste.kde.org/598106/

I think I need more sleep :\


[Mageia-dev] Barry's cronsync script - Bugs

2012-11-05 Thread Johnny A. Solbu
On Friday 02 November 2012 00:41, Barry Jackson wrote:
 On 01/11/12 20:51, Barry Jackson wrote:
 
  See how it goes :)
 
 Last update - honest - added proper file lock as the existing method was 
 flakey - it's finished and I'm leaving it alone now :)
 Attached and also here:-
 http://paste.kde.org/588158/12522135/
 
 

I have problems customizing it for my own use. (I'm testiing manually for the 
time being)
It won't exclude the things I say it should exclude.
My copy have this line: 
==
myexcludes=--exclude={debug/,backports_testing,updates_testing/}
==
It does Not exclude them. (Note that I am excluding all debug and _testing 
folders, but Not SRPMS)
That line used in my manuall rsync command, works. They are excluded.

So, why won't this work in cronsync?

-- 
Johnny A. Solbu
PGP key ID: 0xFA687324


signature.asc
Description: This is a digitally signed message part.