Skip to content

nielsengelen/vbo365-rest

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
css
Jan 29, 2021
Jan 29, 2021
js
Oct 21, 2020
Jan 29, 2021
Nov 26, 2019
Jan 29, 2021
Jan 29, 2021
Aug 14, 2020
Jan 29, 2021
Jan 29, 2021
Oct 2, 2020
Jan 29, 2021
Jan 29, 2021
Jan 29, 2021

Unofficial Self-Service Web Portal for Veeam Backup for Microsoft Office 365

About

This web-based portal offers Self-Service to tenant admins leveraging the RESTful API service included in Veeam Backup for Microsoft Office 365. This allows them to perform restores to either the original or a different location as well as downloading items as a plain/PST/ZIP file.

Every feature works as an independent page, therefore it is easy to remove or add Exchange, OneDrive, or SharePoint based on your offering by modifying the navigation bar on top.

Dependencies

Make sure you download dependencies using composer.

For more information on how to install composer:

This project leverages a mixture of HTML, PHP, and Javascript. The following libraries are used:

It is required to have a webserver running with PHP5 or higher and the mod_rewrite module enabled. The easiest way to do this is to leverage a Linux VM with Apache however Windows with IIS should work as well.

As an example you can use the following Linux Ubuntu with Apache guide or Windows with IIS guide.

This portal leverages rewrite rules via .htaccess and mod_rewrite needs to be enabled in Apache. More information on this can be found via Enabling mod_rewrite for Apache running on Linux Ubuntu.

Important step

Disable MultiView within the directory document root for Apache. This can be done my modifying the default site configuration and set it as below:

<Directory /var/www/html>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

For IIS the web.config file is required. More information can be found via importing the IIS web config.

It is advised to increase or disable the PHP maximum execution time limit. This can modified in the php.ini file as described per changing the maximum execution time limit

Installation

1. Download and install composer

a. Linux: curl -sS https://getcomposer.org/installer | /usr/bin/php && /bin/mv -f composer.phar /usr/local/bin/composer
b. Windows: Download and run Composer-Setup.exe from the composer website.

2. Clone this repository

git clone https://github.com/nielsengelen/vbo365-rest.git

Place these files under the web service root (/var/www/html or c:\Inetpub\wwwroot)

3. Initialize Composer from the specific folder (/var/www/html or c:\Inetpub\wwwroot)

composer install

Configuration

Once composer has finished, open a web browser and go to setup.php, this allows you to generate a config file.

If this doesn't work, modify the original config.php file with your Veeam Backup for Microsoft Office 365 hostname/IP, port (default: 4443) and, API version to be used. Additionally, you can configure the custom title to be shown.

Remember to enable mod_rewrite as described in the dependencies. Remove the setup.php file once this is done.

Usage

Open a web browser and go to index.php. From here you can either log in as an admin or a tenant.

You should see the following login screen: Login form

Logged in as an admin: Dashboard view

Exchange view: Exchange view

OneDrive view: OneDrive view

SharePoint view: SharePoint view

About

This serves as an example on how to work with the RESTful API calls and should be tested before using it in production. Feel free to modify and re-use it however many calls are done with default values that can be modified if needed.

Known issues

  • No known issues

Note: There is currently no SSL verification due to self signed certificate testing, please change settings 'verify' to true or remove the specific line accordingly in veeam.class.php.

Questions and feature request

Please use the GitHub issue tracker for any questions or feature requests.

Distributed under MIT license

Copyright (c) 2021 nielsengelen

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.