Montag, 18. Februar 2013

BackupGoo 5 - setting up the command line

These instructions are outdated. Please open these:


Many users asked us about a command line version of BackupGoo. And we are pleased to announce that BackupGoo 5 contains such a tool.

There are many advantages - especially if you are using BackupGoo to backup a lot of accounts - or if you want to run BackupGoo on many servers.

This tutorial explains how to setup BackupGoo and how to retrieve your accounts.

You need:
  • Your client id
  • Your service account email
  • Your keyfile

If you don't know how to get them please check our tutorial.

Please note:
The following description is for Unix and MacOS systems. For Windows please use the *.bat scripts. E.g. use instead of "" the "backupgoo-add-domain.bat".

Setup your domain

The first step is to tell BackupGoo about your domain and your credentials. In your unzipped BackupGoo distribution please execute " -h". The option "-h" will show you a help screen about all options.

An exemplary usage is: 
--location-oauth20-keyfile mylocation/23r23123r.p12 

This will save the credentials for your domain. Now it is time to tell BackupGoo which users to backup.

Add the users you want to backup

The second command is As with all BackupGoo commands you can use "-h" on the command line to get all possible configuration parameters. This little tool allows you to retrieve all users of your domain. These are the users BackupGoo will backup.

Simply call
on the command line and it will fetch all users. 

Run BackupGoo

After setting up your domain and loading all users to backup it is quite simple to run a backup. Simply call
and BackupGoo will download all your data from your Google domain.

Add the license key

When your 14 day trial expires and you choose to buy a license, you get a license key.
Now you have to add this key to BackupGoo. Therefor call -key YOUR_KEY
on the command line. Thats it!


This post showed you how to tell BackupGoo the credentials for your domain, how to fetch users that can be backed-up and finally how to run BackupGoo on the command line.

You are now ready to automate BackupGoo using crontab and keep your data safe.

Please don't hesitate to contact us at if anything is not 100% clear or if you encounter any problems.

BackupGoo 5, OAuth 2.0 and a domain

These instructions are outdated. Please open these:


Google is currently switching their authentication systems to OAuth 2.0. BackupGoo 5 is 100% ready for OAuth 2.0, and there are some steps to setup the system.

In principle there are two steps to do:

1. Create a so called service account in the "API console"
2. Add this service account to your domain via the admin console

1. Create a service account in the API console

Go to and log into the console via your admin email account of your domain.

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 "Service Account" as client id setting and click "Create client ID".

Then click on download private key. Keep the file in a good location. BackupGoo will need the file to access your data.

That's it already. You now have three things you need for BackupGoo:
1. The key file (ending in p12)
2. Your client ID ending in ""
3. Your Email address ending in ""

The next step is to add your brand new API key to your domain.

2. Add service account to your domain

Go to (replace "" with your domain name)

Click on "Advanced tools".

Click on "Authentication" => "Manage third party OAuth Client access".

Then enter a new API access:
Client Name: Your client ID from the console
One or more API scopes (copy and paste the list with commas):,,,,

Then click on "authorize". That's it.


This post showed you how to create a service account on the API console and how to register that service account with your domain.

This enables you to use Google's OAuth 2.0 authentication together with BackupGoo 5.

In case you got any questions - please don't hesitate to contact us at!