- Migrating from ownCloud classic sync to Nextcloud on Windows
- Overview
- Terms used in this card
- After the migration
- 1. Remove the folder sync connections
- 2. Remove the LCSB account
- 3. Check for other ownCloud accounts
- 4. Uninstall the ownCloud client
- 5. Verify the uninstall
- 6. Copy or move your files into a new Nextcloud folder
- 7. Install the Nextcloud client and log in
- 8. Set up classic sync
- 9. Verify your setup
- 10. Compare and delete your old ownCloud folder
- What’s next
- Support
Migrating from ownCloud classic sync to Nextcloud on Windows#
This How-to Card is for Windows users who synchronized LCSB ownCloud with the ownCloud desktop client in classic sync mode (without virtual file support). It takes you from your current ownCloud setup to a working Nextcloud desktop client with classic sync. You can follow it from top to bottom without leaving this page.
If you used virtual file support in the ownCloud client, follow Migrating from ownCloud virtual files to Nextcloud on Windows instead. If you are not sure, see How to check your synchronization mode. The Migrating from ownCloud to Nextcloud How-to Card also explains the migration timeline.
To avoid downloading all your files again
You start Nextcloud from your current local ownCloud data. After the migration, you copy (or move, if you lack free disk space) your files from your ownCloud folder into a new Nextcloud folder. The Nextcloud client then recognizes the files that are identical to the files on the server and does not download them again.
Overview#
Before the migration (no later than around noon on the 23rd of November (23.11.)): stop editing and synchronize everything with ownCloud, as described in the Preparing for the migration from ownCloud to Nextcloud How-to Card.
After the migration (from the afternoon of the 24th of November (24.11.), once LCSB Nextcloud is available):
- Remove the folder sync connections
- Remove the LCSB account
- Check for other ownCloud accounts
- Uninstall the ownCloud client
- Verify the uninstall
- Copy or move your files into a new Nextcloud folder
- Install the Nextcloud client and log in
- Set up classic sync
- Verify your setup
- Compare and delete your old ownCloud folder
Terms used in this card#
ownCloud client: the ownCloud desktop application. To open its window, click the ownCloud icon in the notification area, at the bottom right of the taskbar (possibly hidden under ^).
LCSB account: the accounts connected in the ownCloud client are listed at the top left of the ownCloud client window. The LCSB account is the one with the server address owncloud.lcsb.uni.lu. Whenever this card says “select the LCSB account”, click this entry.
ownCloud folder: the folder on your computer that is synchronized with the LCSB ownCloud server. It is usually
C:\Users\<your username>\ownCloud. If you chose another location, select the LCSB account in the ownCloud client: the path of your ownCloud folder is shown in the folder sync connection entry.If your client connects to multiple servers, there are multiple ownCloud folders on your computer (typically one
ownCloudand othersownCloud_<some_suffix>, or custom names you chose during setup). Make sure to identify the one that is synchronized with the LCSB ownCloud server before proceeding.Backup copy: your ownCloud folder serves as a local backup copy of your files until you have checked, in step 10, that all your files are available on LCSB Nextcloud.
After the migration#
Do these steps once LCSB Nextcloud is available, from the afternoon of the 24th of November (24.11.). Before the migration, you must have followed the Preparing for the migration from ownCloud to Nextcloud How-to Card.
1. Remove the folder sync connections#
- In the ownCloud client, select the LCSB account.
- Click the ellipsis (
...) next to your folder sync connection and select Remove folder sync connection. If you have several folder sync connections, remove each of them.
Note: your local files are not deleted
Removing the folder sync connection only stops the synchronization. Your ownCloud folder and the files in it stay on your computer.
2. Remove the LCSB account#
- In the ownCloud client, select the LCSB account.
- Click Manage Account, then Remove, then Confirm.
3. Check for other ownCloud accounts#
Look at the top left of the ownCloud client window.
- No account is left: the ownCloud client was only used for LCSB ownCloud. Continue with step 4.
- Other accounts are still listed (e.g. the ownCloud server of a partner institute): you still need the ownCloud client for them. Do not uninstall it. Skip steps 4 and 5 and continue with step 6.
4. Uninstall the ownCloud client#
- Quit the ownCloud client: right-click the ownCloud icon in the notification area, then click Quit ownCloud.
- Open Settings > Apps > Installed apps, search for ownCloud, click the ellipsis (
...) and then Uninstall. - Delete the
ownCloudfolder in the following locations, if they exist. Press Win + R, enter the location and press Enter:%APPDATA%%LOCALAPPDATA%
- Open Credential Manager (search for it in the Start menu) > Windows Credentials and remove the entries containing
owncloud.
Do not delete your ownCloud folder. You need it in step 6 and as a backup copy until step 10.
5. Verify the uninstall#
Open Windows PowerShell and run:
Get-Package -Name "*ownCloud*" -ErrorAction SilentlyContinue
@("$env:APPDATA\ownCloud", "$env:LOCALAPPDATA\ownCloud", "$env:LOCALAPPDATA\Programs\ownCloud", "$env:ProgramFiles\ownCloud") |
Where-Object { Test-Path $_ } | ForEach-Object { "Still present: $_" }
cmdkey /list | Select-String -Pattern "owncloud"If the uninstall was successful, the command prints nothing. If it prints something, remove the listed application, folder or credential as described in step 4. Then run the command again, until it prints nothing.
6. Copy or move your files into a new Nextcloud folder#
Create a new, empty folder called
Nextcloudin your user folder:C:\Users\<your username>\Nextcloud. If a folder with this name already exists, choose another name, e.g.Nextcloud-LCSB, and use this name everywhere below.Decide whether to copy or move your files:
- Copy (recommended): your ownCloud folder stays untouched and remains your backup copy until you compare it with Nextcloud in step 10. Copying needs as much free disk space as your ownCloud folder uses.
- Move (only if you do not have enough free disk space to copy): your files are no longer in your ownCloud folder, so you have no local backup copy. Your files remain on the Nextcloud server, which is backed up. If you want a local backup copy anyway, copy your ownCloud folder to an external drive before moving the files. You can also backup your files on Atlas.
To decide, right-click your ownCloud folder > Properties to see its size. The free space on your disk is shown under This PC in File Explorer. If the free space is larger than the size of your ownCloud folder (keep some margin, e.g. 10 GB), copy. Otherwise, move.
Copy or move the files. Follow these rules:
- Copy or move the contents of your ownCloud folder, not the folder itself, so that the folders of your ownCloud folder are directly inside
Nextcloud. Example:Nextcloud\Projects, notNextcloud\ownCloud\Projects. - Do not copy or move hidden files (e.g. names starting with
., such as.sync_*.db). They belong to the old ownCloud client. The instructions below skip them automatically. - Beware of drag and drop. On the same disk, drag and drop moves files and doesn’t copy them. Use the keyboard shortcuts below.
File Explorer (hidden files are not shown, so they are not selected):
- Open your ownCloud folder and select all items (Ctrl + A).
- To copy: press Ctrl + C.
- To move: press Ctrl + X.
- Open your
Nextcloudfolder and press Ctrl + V.
PowerShell (adapt the paths if your folders have other names or locations):
To copy:
robocopy "$HOME\ownCloud" "$HOME\Nextcloud" /E /XA:SH /XF ".*" /XD ".*"To move:
robocopy "$HOME\ownCloud" "$HOME\Nextcloud" /E /MOVE /XA:SH /XF ".*" /XD ".*"
robocopykeeps the modification dates and skips hidden files and folders. An exit code of 0 to 7 means success.All methods above keep the modification dates of your files. This is important: if the dates change, the Nextcloud client may treat the files as changed and create conflict copies.
If you moved your files, your ownCloud folder now only contains hidden files of the old ownCloud client. Keep it until step 10, then delete it.
- Copy or move the contents of your ownCloud folder, not the folder itself, so that the folders of your ownCloud folder are directly inside
7. Install the Nextcloud client and log in#
Download the latest Nextcloud desktop client for Windows.
Open the downloaded file and follow the instructions of the installer.
Start the Nextcloud client. If the client asks whether you want to import a legacy configuration (e.g. from ownCloud), click Skip. Starting with a clean setup avoids confusion and sync problems later.
Nextcloud client window doesn’t appear
The Nextcloud client runs in the background. When you start it, it may not open a window, but only show a small cloud icon in the notification area, at the bottom right of the taskbar. It is often hidden: click the ^ arrow to show hidden icons. To keep it always visible, drag the icon onto the taskbar, or go to Settings > Personalisation > Taskbar > Other system tray icons and turn on Nextcloud.
If there is no icon at all, check in Task Manager that the client is running. If it is not running, start it again from the Start menu.
Enter the server address https://nextcloud.lcsb.uni.lu and click Log in.
Your browser opens. Click Log in.
Click Login with LCSB.
Choose the Identity Provider of your institution and log in with the corresponding credentials. University of Luxembourg staff should select the uni.lu Identity Provider.
Click Grant access.
When Account connected is shown, close the browser window and go back to the Nextcloud client.
8. Set up classic sync#
On Windows, the Nextcloud client uses virtual files by default. In this step you choose classic sync and connect your Nextcloud folder.
Case A: the client asks you to choose a synchronization mode right after login.
- Select Synchronize everything (or Choose what to sync, if you only want some folders. Select at least all folders that you copied or moved in step 6). Do not select Virtual files.
- Under Local sync folder, click Choose and select the
Nextcloudfolder you created in step 6. - Click Done. If you are asked whether to keep or erase local files, read the box below. The first synchronization starts.
Case B: no such question appears (or you clicked Set up later):
If the client already shows a folder sync connection, disable virtual files first: click the ellipsis (
...) next to it and select Disable virtual file support.
Click your username in the top left corner, then click Add Folder Sync Connection.
Choose the local folder: select the
Nextcloudfolder you created in step 6, then click Next.
Choose the remote folder: select the top-level folder, then click Next.
Choose what to sync. Select at least all folders that you copied or moved in step 6. Folders you do not select stay on the server, but are not downloaded to your computer.
Click Add sync connection. The first synchronization starts. It can take a while, depending on the number and size of your files.
Asked whether to keep or erase local files?
This question appears because your Nextcloud folder is not empty. Choose Keep. Never choose Erase: it deletes the files in the folder, and if you moved them, it deletes your only local copy.
If you selected another folder by mistake (e.g. your old ownCloud folder), choose neither option. Go back and select your Nextcloud folder.
9. Verify your setup#
Once the first synchronization is finished:
Check that the Nextcloud icon in the notification area (under ^) shows a green check mark.
Open the client and check that no files are listed as not synced or with errors.
Open the Nextcloud web interface and check that all folders you expect are present.
Create a test file in your
Nextcloudfolder and check that it appears in the web interface. Then delete the test file and check that it also disappears from the web interface.
10. Compare and delete your old ownCloud folder#
- Check that all folders and files from your old ownCloud folder are present in Nextcloud:
- You copied your files in step 6: compare your old ownCloud folder with your
Nextcloudfolder or with the Nextcloud web interface. - You moved your files in step 6: there is nothing left to compare. Check in the web interface that all your folders are present, and in the Nextcloud client that no files are listed as not synced or with errors.
- You copied your files in step 6: compare your old ownCloud folder with your
- If you have Cryptomator vaults, add them again in Cryptomator and check that they open (see Cryptomator vaults).
- If something is missing, do not delete your ownCloud folder. Please contact support.
- If everything is present, delete your old ownCloud folder: move it to the Recycle Bin, then empty the Recycle Bin.
Your migration is complete. From now on, you can create, edit, move and delete files again, in your Nextcloud folder.
What’s next#
- Re-create your public links and set up the Nextcloud mobile app: see Shares and public links and Mobile apps.
- To learn how to use Nextcloud day to day (sync modes, sharing rules, ownership of shared folders), read the LCSB Nextcloud How-to Card.
Support#
If you encounter any issues, create a ServiceNow ticket. In the Application field, select owncloud. ServiceNow is only available to University of Luxembourg staff. If you are not UL staff, send an email to lcsb-sysadmins@uni.lu.