Files
workavia-drive/tdrive/backend/utils/nextcloud-migration
Anton Shepilov c9ce1fce43 🚑 Restore files from nextcloud (#423)
* 🚑Modify nextcloud migration to be able to back up files from next cloud

Co-authored-by: Monta <monta@HP-ProBook-445-14-inch-G9-Notebook-PC-505aadfc.localdomain>
2024-03-07 18:33:08 +01:00
..
2024-03-07 18:33:08 +01:00
2024-01-23 13:59:13 +04:00
2023-12-14 22:19:15 +01:00
2023-12-14 22:19:15 +01:00

About

This is a service for migrating date from Nextcloud to Twake Drive

Development

  1. To build image locally

    docker build -t twakedrive/tdrive-nextcloud-migration -f docker/tdrive-nextcloud-migration/Dockerfile .
    
  2. Run it with Docker

    docker run -p 4001:4001 \
      -e SERVER_PORT=4001 \
      -e LDAP_BASE=dc=example,dc=com \
      -e LDAP_URL=ldap://ldap.twake.app:389 \
      -e TMP_DIR=/tmp \
      -e NEXTCLOUD_URL=https://nextcloud.fr \
      -e TWAKE_DRIVE_URL=https://tdrive.qa.lin-saas.com/ \
      -e TWAKE_DRIVE_APP_ID=<MY_APPLICATION_ID> \
      -e TWAKE_DRIVE_SECRET=<MY_SECRET> \
       twakedrive/tdrive-nextcloud-migration
    
  3. Request example

    curl -X POST --data "username=luke&password=iamyourfather" http://localhost:4001/