diff --git a/Web/Controls/Help/Administration/Administration.ascx b/Web/Controls/Help/Administration/Administration.ascx index 667dda2f6..d78dc455f 100644 --- a/Web/Controls/Help/Administration/Administration.ascx +++ b/Web/Controls/Help/Administration/Administration.ascx @@ -443,6 +443,7 @@
  • ">Using webhooks in DocSpace
  • ">Migrating ONLYOFFICE Workspace data to ONLYOFFICE DocSpace
  • ">Migrating Google Workspace data to ONLYOFFICE DocSpace
  • +
  • ">Migrating Nextcloud data to ONLYOFFICE DocSpace
  • diff --git a/Web/Controls/Help/Administration/ConfiguringDocSpace.ascx b/Web/Controls/Help/Administration/ConfiguringDocSpace.ascx index 99547930b..805145442 100644 --- a/Web/Controls/Help/Administration/ConfiguringDocSpace.ascx +++ b/Web/Controls/Help/Administration/ConfiguringDocSpace.ascx @@ -72,6 +72,7 @@
  • ">Using webhooks in DocSpace
  • ">Migrating ONLYOFFICE Workspace data to ONLYOFFICE DocSpace
  • ">Migrating Google Workspace data to ONLYOFFICE DocSpace
  • +
  • ">Migrating Nextcloud data to ONLYOFFICE DocSpace
  • diff --git a/Web/Controls/Help/Guides/General/DocSpaceMigrationNextcloud/DocSpaceMigrationNextcloud.ascx b/Web/Controls/Help/Guides/General/DocSpaceMigrationNextcloud/DocSpaceMigrationNextcloud.ascx new file mode 100644 index 000000000..c851ad8c5 --- /dev/null +++ b/Web/Controls/Help/Guides/General/DocSpaceMigrationNextcloud/DocSpaceMigrationNextcloud.ascx @@ -0,0 +1,161 @@ +<%@ Control Language="C#" Inherits="BaseContentUserControls"%> +<%@ Register Namespace="TeamLab.Controls" Assembly="__Code" TagPrefix="cc" %> + + + +
    +

    Migrating Nextcloud data to ONLYOFFICE DocSpace

    + +

    Introduction

    +
    +

    In this article, we will show you how to transfer the Nextcloud server data to your ONLYOFFICE DocSpace.

    +

    Starting from v 2.5, ONLYOFFICE DocSpace supports exporting Nextcloud users, users’ files, sharing settings and groups.

    +
    + +

    Export data from Nextcloud

    +

    Enabling the maintenance mode

    +
    +
    +

    First, you need to enable the maintenance mode on your Nextcloud server. The maintenance mode stops the server and allows us to export data from the Nextcloud installation folder and MySQL database. To activate the maintenance mode:

    +
      +
    1. Go to the folder with the Nextcloud installation. +
      cd /var/www/html/nextcloud
      +
    2. +
    3. Run the occ file to enable the maintenance mode. +
      sudo -u www-data php occ maintenance:mode --on
      +
      + Depending on the operating system, the location of the Nextcloud installation folder might differ. +
      +
    4. +
    +
    +
    + +

    Exporting the data folder

    +
    +
    +

    To successfully migrate your data to ONLYOFFICE Workspace, we need to include users' folders in our backup archive. They are located in the data folder within the Nextcloud directory.

    +

    To export the data folder run the following command:

    +
    sudo rsync -Aax /var/www/html/nextcloud/data [preferred location]/data/
    +

    Where [preferred location] is a destination of the exported folder.

    +
    +
    + +

    Exporting the database

    +
    +
    +

    Also, we need to export the MySQL backup file. There are two possible ways of dumping the database.

    +

    In case the database is deployed on the same server, execute:

    +
    +
    sudo mysqldump --lock-tables -u root -p nextcloud_db > [preferred location]/nextcloud-dirbkp_`date +"%Y%m%d"`/
    +

    Where [preferred location] is a destination of the exported folder.

    +
    +
    +

    If the database is deployed on a different server, run the following command:

    +
    mysqldump --single-transaction -h [server] -u [username] -p[password] [db_name] > nextcloud-sqlbkp_`date +"%Y%m%d"`.bak
    +
    +
    +
    + +

    Disabling the maintenance mode

    +
    +
    +

    After all the necessary folders and files have been exported, we can disable the maintenance mode and start the Nextcloud server.

    +

    To do that, go to the Nextcloud installation folder and execute:

    +
    sudo -u www-data php occ maintenance:mode --off
    +
    +
    + +

    Prepare the data for import

    +
    +
    +

    In order to import the data, you need to compress certain files and folders to a zip archive. The archive.zip file contains the data folder which stores the folders of the Nextcloud users and the database backup file. The structure of the archive.zip file looks as follows:

    +
    -archive:
    +    - data:
    +        - user1
    +        - user2
    +        - user3
    +    - MySQL backup file
    +
    + +
    + We recommend storing only users' folders within the data directory. Storing the remaining files and folders within this directory might cause mistakes when importing the data. +
    +
    +
    + +

    Import the data to ONLYOFFICE DocSpace

    +
    +
    +
      +
    1. Log in to your ONLYOFFICE DocSpace.
    2. +
    3. Use the Options icon" /> menu in the lower left corner and select the Settings option.
    4. +
    5. Choose the Data import section.
    6. +
    7. Click the Import link next to the Nextcloud service. +
      + Migrating Nextcloud data to ONLYOFFICE DocSpace" /> + Migrating Nextcloud data to ONLYOFFICE DocSpace" /> +
      +
      +
    8. +
    9. Click the folder icon next to the selection box and select the archives of the users. +

      Wait for the archive to load. When the loading is complete, click the Next step button.

      +
      + Migrating Nextcloud data to ONLYOFFICE DocSpace" /> + Migrating Nextcloud data to ONLYOFFICE DocSpace" /> +
      +
      +
    10. +
    11. Select users from the list and click the Next step button. Only users with e-mails will be migrated first. +
      + Migrating Nextcloud data to ONLYOFFICE DocSpace" /> + Migrating Nextcloud data to ONLYOFFICE DocSpace" /> +
      +
      +
    12. +
    13. Now you can select not filled e-mail users and fill in their e-mail addresses. To do that, fill in the user's e-mail address. Click the Tick button next to the e-mail text box. Select several users from the list by ticking users' checkboxes. Proceed to the next step by clicking the Next step button. +
      + Migrating Nextcloud data to ONLYOFFICE DocSpace" /> + Migrating Nextcloud data to ONLYOFFICE DocSpace" /> +
      +
      +
    14. +
    15. Select user types (DocSpace roles: DocSpace admin, room admin, power user) and click the Next step button. +
      + Migrating Nextcloud data to ONLYOFFICE DocSpace" /> + Migrating Nextcloud data to ONLYOFFICE DocSpace" /> +
      +
      +
    16. +
    17. Select modules for import (users, groups, personal files, shared files, shared folders). Click the Start data import button to proceed with the final step. +
      + Migrating Nextcloud data to ONLYOFFICE DocSpace" /> + Migrating Nextcloud data to ONLYOFFICE DocSpace" /> +
      +
      +
    18. +
    19. After the data is migrated, click the Finish button to complete the data import. +
      + Migrating Nextcloud data to ONLYOFFICE DocSpace" /> + Migrating Nextcloud data to ONLYOFFICE DocSpace" /> +
      +
      +
    20. +
    +

    Also, you can send a welcome letter to the new users. This letter will inform your users about migration to ONLYOFFICE DocSpace. It contains a brief description of the main features and a login link. To send the letter, check the Send invite letter option before clicking the Finish button.

    +

    After the migration is complete, the new users and groups can be found in the Accounts section.

    +

    Personal files and shared files can be accessed through the Documents section. Shared folders can be accessed through the Rooms sections.

    +
    +
    + +
    diff --git a/Web/administration/docspace-nextcloud-migration.aspx b/Web/administration/docspace-nextcloud-migration.aspx new file mode 100644 index 000000000..7455c3f3f --- /dev/null +++ b/Web/administration/docspace-nextcloud-migration.aspx @@ -0,0 +1,12 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/Masters/Administration/AdministrationArticles.master" %> +<%@ Register Namespace="TeamLab.Controls" Assembly="__Code" TagPrefix="cc" %> + + + + + + + + +
    + \ No newline at end of file diff --git a/Web/images/Help/Guides/big/guide220/step1.png b/Web/images/Help/Guides/big/guide220/step1.png new file mode 100644 index 000000000..f7fbb1fcf Binary files /dev/null and b/Web/images/Help/Guides/big/guide220/step1.png differ diff --git a/Web/images/Help/Guides/big/guide220/step2.png b/Web/images/Help/Guides/big/guide220/step2.png new file mode 100644 index 000000000..43887eee1 Binary files /dev/null and b/Web/images/Help/Guides/big/guide220/step2.png differ diff --git a/Web/images/Help/Guides/big/guide220/step3.png b/Web/images/Help/Guides/big/guide220/step3.png new file mode 100644 index 000000000..15a937d78 Binary files /dev/null and b/Web/images/Help/Guides/big/guide220/step3.png differ diff --git a/Web/images/Help/Guides/big/guide220/step4.png b/Web/images/Help/Guides/big/guide220/step4.png new file mode 100644 index 000000000..d507d5fe5 Binary files /dev/null and b/Web/images/Help/Guides/big/guide220/step4.png differ diff --git a/Web/images/Help/Guides/big/guide220/step5.png b/Web/images/Help/Guides/big/guide220/step5.png new file mode 100644 index 000000000..8df92ca7c Binary files /dev/null and b/Web/images/Help/Guides/big/guide220/step5.png differ diff --git a/Web/images/Help/Guides/big/guide220/step6.png b/Web/images/Help/Guides/big/guide220/step6.png new file mode 100644 index 000000000..7ad109231 Binary files /dev/null and b/Web/images/Help/Guides/big/guide220/step6.png differ diff --git a/Web/images/Help/Guides/small/guide220/step1.png b/Web/images/Help/Guides/small/guide220/step1.png new file mode 100644 index 000000000..23019039f Binary files /dev/null and b/Web/images/Help/Guides/small/guide220/step1.png differ diff --git a/Web/images/Help/Guides/small/guide220/step2.png b/Web/images/Help/Guides/small/guide220/step2.png new file mode 100644 index 000000000..1506828b6 Binary files /dev/null and b/Web/images/Help/Guides/small/guide220/step2.png differ diff --git a/Web/images/Help/Guides/small/guide220/step3.png b/Web/images/Help/Guides/small/guide220/step3.png new file mode 100644 index 000000000..542c3339a Binary files /dev/null and b/Web/images/Help/Guides/small/guide220/step3.png differ diff --git a/Web/images/Help/Guides/small/guide220/step4.png b/Web/images/Help/Guides/small/guide220/step4.png new file mode 100644 index 000000000..7a740f960 Binary files /dev/null and b/Web/images/Help/Guides/small/guide220/step4.png differ diff --git a/Web/images/Help/Guides/small/guide220/step5.png b/Web/images/Help/Guides/small/guide220/step5.png new file mode 100644 index 000000000..821d34cee Binary files /dev/null and b/Web/images/Help/Guides/small/guide220/step5.png differ diff --git a/Web/images/Help/Guides/small/guide220/step6.png b/Web/images/Help/Guides/small/guide220/step6.png new file mode 100644 index 000000000..df3dc0e6a Binary files /dev/null and b/Web/images/Help/Guides/small/guide220/step6.png differ