2022

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Setting up G Suite Backup and generating Key Value

Introduction

This document describes the setting up of the DBSync project on a server/local environment and executing it.

...

Reference Youtube: https://youtu.be/aFshfKg2jCI

Prerequisites

Before we proceed, there are some prerequisites needed in the environment. Following are those:

  1. JDK 11 (I believe both OpenJDK and Oracle JDK should work)

  2. Maven 3.X

  3. Spring Tool Suite (Not Mandatory, as you can run the app from command line as well)

  4. G Suite Login (Super Admin Login)

  5. MySql

  6. Folders created on the server/local environment where the backup should happen.

Setting up GCloud Console Project

The very first step should be to create and setup a GCloud Console Project. Following are the steps to do so:

...

  1. Make sure that you have selected the newly created project from the project selector on the top nav bar.

  2. Once selected, from the left menu, under “APIs & Services” select “Credentials”.

  3. Click “Create Credentials” from the top nav bar and select OAuth Client ID.

  4. Select a “Desktop Application” for now since we do not have this application hosted anywhere.

  5. Give an appropriate name and click “Create”.

  6. Download the client secret on your environment and name it client_credentials.json

Setting up the server/local environment

Once the GCloud project is set up, we should now set up the local environment. Following steps to do so:

...

Once the above is done, you are all set to execute the project.

Building and Executing the project

Once the above is set up following process to build and execute the project:

...