Seiten

Dienstag, 5. März 2013

BackupGoo 5 - How to manage a single account with OAuth 2.0

Introduction


At Google IO 2011 Google advised the developer for the first time to migrate the authorization from a ClientLogin (login with password and username) to OAuth2.

Due to the deprecation of the ClientLogin last year, we release BackupGoo 5 with a completely new authorization system based on OAuth2.

To set up BackupGoo there are two steps to do:
1. Create a google project in the "API console"
2. Setup OAuth2 in BackupGoo


1. Create a google project in the API console

The API console is used to gain access to the Google APIs and manage Google's quotas. When you created a new project, you can use this project for all your accounts. It's not restricted to one Account.
But when you want to back up more than one domain with hundreds of users, you can think about createing different projects for each domain.

So let's start:
 
Go to https://code.google.com/apis/console/?pli=1 and log in with your google account.


Click on "create Project".



This takes you to the services. Please enable Drive API and Calendar API.





Click on API Access (left tab) and click on the blue button "Create an OAuth 2.0 client ID".




Enter "BackupGoo" (or an arbitrary name) as project name and hit "Next"
















Select "Installed application" and "Other"  and click "Create client ID".

That's it already.

You now have two things you need for BackupGoo:
- Your client ID ending in ".apps.googleusercontent.com" 
- Your client secret



2. Setup OAuth2 in BackupGoo

When you start BackupGoo for the first time you can set up your account simply by adding your credentials to the form. Otherwise go to the account tab and choose "Add new account".












By hitting "Finish", a login window from Google will popup. After logging in, you can grant permission to BackupGoo to access your files.

Please note: 
Make sure that the account you use for the login at Google is the same that you want to add in BackupGoo!









Thats it!




Conclusion

Now you know how to create a Google project on the API console and set up a single account in BackupGoo.

While using Google's OAuth 2.0 authentication your account password is not provided to BackupGoo.


In case you got any questions - please don't hesitate to contact us at team@backupgoo.com!

Freitag, 1. März 2013

BackupGoo 5 - tuning backup speed via parallel backups


Parallel backups
BackupGoo 5.0 has the ability to run several account backups in parallel.
This dramatically increases the backup speed.

By default BackupGoo works in a sequential manner. If you want to backup 10 accounts BackupGoo will backup account 1, then account 2, then account 3 and so on.

If you set the number of parallel backups to ten it the download speed will increase roughly ten-fold. In the example above BackupGoo will backup all 10 accounts in parallel.

Tell backup to backup in parallel mode
You can set the parallel mode either via the GUI or via the configuration file:


Simply add the following line to your backupgoo.conf:
backupgoo.core.number_of_accounts_to_backup_in_parallel = 6

This runs 6 accounts in parallel thus leading to a 6 fold increase in backup speed. Feel free to play around with the value. And please report any feedback. Thanks!

A note of caution and some limits
There are some limits, however. One limit is the download speed of your internet connection. You can only be as fast as your internet connection. Another concern is memory consumption. If you are setting the parallel mode too high you will get out of memory exceptions.