Seiten

Montag, 18. Februar 2013

BackupGoo 5 - setting up the command line

These instructions are outdated. Please open these:
http://blog-en.backupgoo.com/2015/05/backupgoo-command-line-for-domains.html

Introduction

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 "backupgoo-add-domain.sh" 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 "backupgoo-add-domain.sh -h". The option "-h" will show you a help screen about all options.

An exemplary usage is:

backupgoo-add-domain.sh 
--admin-account admin@mydomain.com 
--domain-name mydomain.com 
--location-oauth20-keyfile mylocation/23r23123r.p12 
--service-account 12345@developer.gserviceaccount.com

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 backupgoo-allusers.sh. 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
backupgoo-allusers.sh
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
backupgoo-backup.sh
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
backupgoo-setup.sh -key YOUR_KEY
on the command line. Thats it!


Conclusion

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 team@backupgoo.com if anything is not 100% clear or if you encounter any problems.











Keine Kommentare:

Kommentar veröffentlichen