[Box Backup-dev] bbackupquery command line interface
Dave Bamford
boxbackup-dev at fluffy.co.uk
Sat May 27 22:51:41 BST 2006
Dave Bamford wrote:
> I am thinking of writing a PHP interface to bbackupquery so it can be
> used from
> a web browser. I have got simple queries to work by submitting the
> command
> in the following syntax
>
> echo exec('bbackupquery "list -t MyDocuments" exit');
>
> but to burrow down the tree its fine until I hit a directory name with
> a space ie
>
> echo exec('bbackupquery "list -t MyDocuments/dave/My Documents" exit');
>
> The list command is truncated at the space and no combination of
> single or
> double quotes seem to work.
I managed to solve the problem by escaping the inner quotes
bbackupquery "list -t \"MyDocuments/dave/My Documents\"" exit
Dave Bamford
More information about the Boxbackup-dev
mailing list