[Box Backup] running bbackupquery in a browser
David Bamford
boxbackup@fluffy.co.uk
Wed, 27 Feb 2008 16:42:15 -0000 (GMT)
------=_20080227164215_93318
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
No problem
code attached- bugs and all.
Its very simple, just remove the bit that tried to get files back and
you can use it to browse the store. You need a valid config file and
keys of course.
Dave
> Hi
>
> Are you going to open source that? It would be very useful.
>
> Best regards,
>
> Pablo
>
>
> On Wed, 2008-02-27 at 13:50 +0000, David Bamford wrote:
>> Hi
>> I have managed to get a web page to work as a means of navigating
>> through
>> files and folders on the store using php to exec bbackupquery commands.
>>
>> But I have failed to get the "get" command to work to retrieve a file.
>>
>> I build a command like this
>>
>> /usr/local/bin/bbackupquery "cd \"/MyDocuments\"" "get \"Backup.bat\""
>> exit
>>
>> and it works fine from a terminal window, but if I try to exec it from
>> the
>> web page I get
>> Error occured fetching file. Logging off... Exception: Connection
>> Protocol_ObjTooBig (7/42)
>>
>> I have tried to give it a destination file, and to fetch by object id,
>> but
>> while the commands work fine from the command line they always fail from
>> the web page. there is nothing in the error_log and php safe_mode is
>> off.
>>
>> The configuration file is read correctly, and exec on other commands
>> like
>> "list" work very well.
>>
>> any help would be appreciated as this gives me the ability to browse and
>> retrieve files graphically.
>>
>> Cheers
>>
>> Dave Bamford
>>
>>
>> _______________________________________________
>> boxbackup mailing list
>> boxbackup@fluffy.co.uk
>> http://lists.warhead.org.uk/mailman/listinfo/boxbackup
>
> _______________________________________________
> boxbackup mailing list
> boxbackup@fluffy.co.uk
> http://lists.warhead.org.uk/mailman/listinfo/boxbackup
>
------=_20080227164215_93318
Content-Type: application/x-php; name="index.php"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="index.php"
PGh0bWw+DQo8aGVhZD4NCjxtZXRhIGh0dHAtZXF1aXY9IkNvbnRlbnQtTGFuZ3VhZ2UiIGNvbnRl
bnQ9ImVuLWdiIj4NCjx0aXRsZT5ib3ggYmFja3VwIHF1ZXJ5PC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