Amanda-Users

Re: 2.4.4b1 cygwin client and specifying DLEs with spaces...

2003-02-11 23:52:42
Subject: Re: 2.4.4b1 cygwin client and specifying DLEs with spaces...
From: "John R. Jackson" <jrj AT purdue DOT edu>
To: Richard Morse <remorse AT partners DOT org>
Date: Tue, 11 Feb 2003 22:42:25 -0500
>Hi!  This is probably a really easily answered question, but I'm not having
>any luck finding it (probably going blind)...

The answer is easy, you're just not going to like it :-).

>I've got the 2.4.4b1 client set up on a cygwin machine.  The backup is going
>well, but in order to create a DLE, I had to do some aliasing.  Is there a
>way to specify a DLE like:
>Xxxxx.xxxx.xxxx /cygdrive/c/Documents and Settings/myuserfolder comp-tar
>
>That is, include paths with spaces?

Unfortunately, several portions of Amanda (client and server) split on
whitespace and have no capability (yet) of escaping or quoting arguments.
This is on my TODO list, but it is a reasonably large thing and has a lot
of potential for getting messed up (just needs lots of careful testing).

However, if I understand things correctly, you're using "native" Amanda
clients on your Windows box rather than Samba to do the backups, right
(I haven't been keeping up with the Amanda under CYGWIN project)?
And that, in turn, uses GNU tar, right?

If so, then you should be able to use an "include" clause and put the
sub-folders to include within some major top level area, and that file
is only processed by GNU tar and (I think) may contain spaces.

So the DLE might be:

  xxxx.xxxx.xxxx /cygdrive/c {
    comp-tar
    include list "include-1"
  }

and in /cygdrive/c/include-1:

  ./Documents and Settings/myuserfolder

Note that you cannot use "include file" as that passes the thing to
include across to the client in the Amanda protocol and falls prey to
the protocol problems.

If you need/want multiple DLE's based at /cygdrive/c, use the new
"diskname"/"diskdevice" disklist syntax, something like this:

  xxxx.xxxx.xxxx /C-1 /cygdrive/c {
    comp-tar
    include list "include-1"
  }

  xxxx.xxxx.xxxx /C-2 /cygdrive/c {
    comp-tar
    include list "include-2"
  }

I haven't used this feature, so the exact details may be a bit off --
sorry.

Obviously, the "-1" and "-2" stuff is just an example.  Use whatever
names make sense to you (as long as they don't contain whitespace :-).

>Alternatively, in the .amanda-gtar-excludes file, can I specify directories
>with spaces?  So I can exclude /Program Files?

Yes, you should be able to put whatever you need to in an exclusion file.
But, just like with "include", you can't use "exclude file" because of
the protocol issue.

>Ricky

John R. Jackson, Technical Software Specialist, ITaP/RCS, jrj AT purdue DOT edu