Support

Akeeba Backup for Joomla!

#40756 Address forOneDrive backup? Need to open firewall to get OneDribe backup to work.

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
4.4.3
PHP version
8.2
Akeeba Backup version
9.8.5

Latest post by nicholas on Tuesday, 28 May 2024 03:37 CDT

SimonBirve

EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 10MiB, please upload it on your server and post a link to it.

Hi

Our university has applied strict firewall rules so our OneDrive backup does not work.

I need to know the address used fro OneDrive backup so we can report that address to our university and get it whitelisted to get our backup up and running.

Cold you please provide us with URL or series of URLs for the OneDrive personal backup used by Akeeba OneDrive backup?

 

Cheers and thanks.

 

/Simon Birve

nicholas
Akeeba Staff
Manager

I cannot give you an exhaustive list of full URLs, because parts of those URLs are created dynamically based on your Microsoft account, the drive you are accessing, and its folder. I can, however, give you the common parts of the URLs we use when accessing the OneDrive APIs (legacy and modern) so your IT department can create filters which will whitelist all dynamically generated URLs.

  • Authentication endpoint: https://www.akeeba.com/oauth2/onedrive.php and https://www.akeeba.com/oauth2/onedrivebusiness.php accessed with GET and POST requests.
  • OneDrive Legacy endpoint: https://api.onedrive.com/v1.0/ accessed via GET, POST, and PUT requests.
  • OneDrive and OneDrive for Business endpoint: https://graph.microsoft.com/v1.0/ accessed via GET, POST, and PUT requests.

IMPORTANT! These are not all the URLs. OneDrive returns its own, unpredictable, upload URL when using chunked uploads. I cannot give you these URLs because they do not follow any published pattern, nor can we predict them. Their structure is entirely up to Microsoft.

If you need to know all the URLs in advance, you will have to DISABLE chunked uploads in Akeeba Backup, thereby preventing the generation of the arbitrary URLs I described in the previous paragraph. Disabling chunked uploads will use the OneDrive simple upload API which only use the URLs I mentioned in the bullet points above.

However, if you disable chunked uploads you are facing other issues. If you don't make any other changes you will be trying to upload very large files to a very slow server which means that it takes a very long time, therefore you will face timeouts preventing you from uploading anything to OneDrive. To prevent that, you will have to set the Part Size For Split Archives to a fairly small value (typically between 20 and 100 MiB will do on most servers) under the Archiver Engine options section of the Configuration page. This means that you will have multiple files generated for each backup you take. For example, a 2 GiB site backup with a part size of 100 MiB will generate 21 files with extensions .j01, .j02, ..., .j20, .jpa (listed as first to last part of the backup). You will need all of these files to be present to restore your backup; the interface will only show you the last part (.jpa), but it expects all files. Think of these files as the volumes of a big book, like Victor Hugo's Les Miserables. You can't read the book if you only have the last volume; you need to have every volume to read the book start to finish.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!