stan wrote:
On Thu, Feb 05, 2004 at 02:16:09PM +0100, Paul Bijnens wrote:
stan wrote:
/foo/bar/[A-J]*
/foo/bar/[K-z]*
Don't mix uppercase and lowercase in the character maps.
It depends on the current LANG and/or LC_* settings what they
expand to. Probably not what you want.
Is there a way to this that IS safe given the locale stuff?
Stay in a logical range:
is ok: [0-9] [A-Z] [a-z] [!a-z]
(if you ever used a EBCDIC character set in unix, then even those
last three were not safe, and included two extra ranges with braces
etc; no sane person uses EBCDIC anymore today -- I did, but I'm not
sane.)
is not ok: [A-z] [a-Z]
(it's not a syntax error, but it does not what you expect it to do!)
The "all except" is encoded by an exclamation mark.
Assume this directory structure:
/d/
/d/l
/d/l/e
/d/d/d
then, this disklist entry does NOT backup /d/d/....:
host /d /d {
include "./l"
}
so you don't need to an explicit exclude for it.
--
Paul Bijnens, Xplanation Tel +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM Fax +32 16 397.512
http://www.xplanation.com/ email: Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now: exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt, abort, hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e, kill -1 $$, shutdown, *
* kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ... "Are you sure?" ... YES ... Phew ... I'm out *
***********************************************************************
|