NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
There's always plan B... (Score:1)
Re:There's always plan B... (Score:2)
I think a diff is going to be much easier to make work. We should be able to check the return code from patch() to see if it applied, and if not resort to rsync. And maybe rsync once a day anyway just to be sure.
Reply to This
Parent
Re:There's always plan B... (Score:2)
Do the diff, but then go through the diff and do all the <'s first, removing those lines. Then just add all the >'s at the end.
Genius!