Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closing #233- Migrating Projects ODK Briefcase #253

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Search the knowledge base, browse our resources and visit our forum for more det
public_collections_advanced_search
api
data_storage

migrating_projects_odk_briefcase

.. toctree::
:maxdepth: 2
Expand Down
177 changes: 177 additions & 0 deletions source/migrating_projects_odk_briefcase.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
# Migrating Projects Between Servers Using ODK Briefcase

Depending upon the nature of your work, KoboToolbox provides
[two different public servers](server.md), one for humanitarian use
([OCHA server](https://kobo.humanitarianresponse.info)) and the other for
non-humanitarian use ([Kobo server](https://kf.kobotoolbox.org)). Data is not
shared between these servers and therefore you will need to use an intermediate
application, such as [ODK Briefcase](https://docs.getodk.org/briefcase-intro/),
if you would like to migrate projects from one to the other. The same is true if
you wish to migrate data from other compatible data collection services (ODK
Aggregate, Formhub, ONA, etc.) to the KoboToolbox platform.

The steps outlined below show the migration of a project from the
_non-humanitarian_ server to the _humanitarian_ server. You can also follow
these steps to migrate a project from any platform compatible with KoboToolbox.

**Step 1: Confirm the project details from your origin server**

In our example, the origin server here refers to the _non-humanitarian server_
aka the _Kobo server_. Confirm the project name and total submissions for the
project you wish to migrate. The project for this support article has 5
submissions.

![KPI 1 Project](images/migrating_projects_odk_briefcase/kpi_one_project.png)

**Step 2: Download the latest version of ODK Briefcase**

Download the latest version of _ODK Briefcase_ (from
[here](https://github.com/getodk/briefcase/releases)) to your personal computer.

**Step 3: Configure the Storage Location of ODK Briefcase**

Double click the _ODK Briefcase_ that you just downloaded. You should be able to
see a dialogue box as shown below:

![ODK Briefcase](images/migrating_projects_odk_briefcase/odk_briefcase.png)

Press **OK** to continue. You will then be directed to _ODK Briefcase_
application as shown below:

![ODK Briefcase Settings](images/migrating_projects_odk_briefcase/odk_briefcase_settings.png)

Configure the **Storage Location** as per your convenience by pressing **Choose
…**. You should now see something similar as shown below _(here you will notice
that once you configure your **Storage Location**, ODK Briefcase application
activates the **Pull**, **Push** and **Export** tabs)_:

![ODK Briefcase Settings Complete](images/migrating_projects_odk_briefcase/odk_briefcase_settings_complete.png)

**Step 4: Configure the Pull settings of ODK Briefcase**

Select the **Pull** tab. You should now see a similar screen as shown below:

![ODK Briefcase Pull](images/migrating_projects_odk_briefcase/odk_briefcase_pull.png)

Select **Configure**. You should see a dialogue box as shown below:

![ODK Briefcase Pull Settings Empty](images/migrating_projects_odk_briefcase/odk_briefcase_pull_settings_empty.png)

Fill up the **URL** and login credentials (**Username** and **Password**) from
your _non-humanitarian server (Kobo server)_ as you wish to migrate a project
from this server to the _humanitarian server (OCHA server)_. You could do it as
shown in the image below:

![ODK Briefcase Pull Settings Filled](images/migrating_projects_odk_briefcase/odk_briefcase_pull_settings_filled.png)

You will need to replace the username `superkalyan` with your own KoboToolbox
username. Please note that you will need to use this URL format
`https://kc.kobotoolbox.org/username` where the `username` should be your
KoboToolbox username. _ODK Briefcase_ will fail to pull the data from your
server if you fail to use the URL format advised above.

**Step 5: Pulling the project to ODK Briefcase storage**

Once the **Pull** configuration settings are done, you should be able to see the
following screen as shown below:

![ODK Briefcase Pull Settings Complete](images/migrating_projects_odk_briefcase/odk_briefcase_pull_settings_complete.png)

Now check the project that you wish to pull to your _ODK Briefcase_ storage.
Then select **Pull** located at the right end corner of the dialogue box. You
should see **Success** under the **Pull Status** as shown below:

![ODK Briefcase Pull Project Select](images/migrating_projects_odk_briefcase/odk_briefcase_pull_project_select.png)

This means that your project was successfully pulled to your _ODK Briefcase_
storage.

**Step 6: Configure the Push settings of ODK Briefcase**

Select the **Push** tab. You should now see a similar screen as shown below:

![ODK Briefcase Push](images/migrating_projects_odk_briefcase/odk_briefcase_push.png)

Select **Configure** and fill up the dialogue box with the **URL** and login
credentials (**Username** and **Password**) from your _humanitarian server (OCHA
server)_ as you wish to migrate everything to this server now (as shown in the
image below):

![ODK Briefcase Push Settings Filled](images/migrating_projects_odk_briefcase/odk_briefcase_push_settings_filled.png)

You will need to replace the username `superkalyan` with your own KoboToolbox
username. Please note that you will need to use this URL format
`https://kc.humanitarianresponse.info/username` where the `username` should be
your KoboToolbox username. The _ODK Briefcase_ will fail to push the data to
your server if you fail to use the URL format advised above.

**Step 7: Pushing the project from ODK Briefcase storage to the destination
server**

Once the **Push** configuration settings are done, you should be able to see the
following screen as shown below:

![ODK Briefcase Push Settings Complete](images/migrating_projects_odk_briefcase/odk_briefcase_push_settings_complete.png)

Now check the project that you wish to push to your other KoboToolbox server.
Then select **Push** located at the right end corner of the dialogue box.

![ODK Briefcase Push Project Select](images/migrating_projects_odk_briefcase/odk_briefcase_push_project_select.png)

You should see **Success** under the **Push Status** as shown below:

![ODK Briefcase Push Project Success](images/migrating_projects_odk_briefcase/odk_briefcase_push_project_success.png)

This means that your project was successfully pushed to the desired KoboToolbox
server (i.e., to your destination account). Your destination server here refers
to the _humanitarian server_, also known as the _OCHA server_.

**Step 8: Ensure that the project has been successfully migrated in your
destination server**

Once the push is successful through the _ODK Briefcase_, ensure that the project
has been migrated to your server (in this case the _humanitarian server_, also
known as the _OCHA server_). You should still see that the submissions are not
present in the KPI as shown below:

![KPI No Project](images/migrating_projects_odk_briefcase/kpi_no_project.png)

Go to the legacy UI by selecting the legacy icon located at the left down corner
as shown below:

![Legacy Way](images/migrating_projects_odk_briefcase/legacy_way.png)

You should now see the migrated project along with its data in the legacy UI.

![Legacy Project List](images/migrating_projects_odk_briefcase/legacy_project_list.png)

To further access the data, select the project name. You should be able to
download the project data by clicking **Download data** or view the gallery by
clicking **View gallery** or download the project media by clicking **Download
all photos**, as shown below:

![Legacy Project](images/migrating_projects_odk_briefcase/legacy_project.png)

<p class="note">
You should still be able to continue data collection for this project that you
have recently migrated to the destination server.
</p>

## Limitations:

- The migrated project should have the same limitations that the legacy UI
should have.

- Data for the migrated projects can only be collected through the
_KoboCollect Android App_. Collecting data with _Enketo_ is not supported
for such projects.

- The migrated projects can only be managed (_Download data_, _View gallery_,
_Download all photos_) through the legacy UI. Managing the same through the
KPI UI is not supported.

- You should only be able to download the project data from the migrated
project. The system does not support downloading the survey form (XLSForm).

- Syncing a migrated project from the legacy UI to the KPI UI is not
supported.