- Migrating from ownCloud to Nextcloud on Linux
- 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 to Nextcloud on Linux#
This How-to Card is for Linux users who synchronized LCSB ownCloud with the ownCloud desktop client. It takes you from your current ownCloud setup to a working Nextcloud desktop client with classic sync (the only mode available on Linux). You can follow it from top to bottom without leaving this page.
If you are not on Linux, or not sure, go back to Migrating from ownCloud to Nextcloud and choose the card for your situation. That 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 system tray / notification area of your desktop, then click Show ownCloud.
LCSB account: the accounts connected in the ownCloud client are listed in the top bar of the ownCloud client window, next to Add account. 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
/home/<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 Account, then Remove, and confirm.
3. Check for other ownCloud accounts#
Look at the top bar 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: click Quit ownCloud at the top right of the ownCloud client window.
- Remove the client with the tool you used to install it, for example:
- Debian/Ubuntu:
sudo apt remove owncloud-client - Fedora:
sudo dnf remove owncloud-client - Flatpak:
flatpak list | grep -i owncloud, thenflatpak uninstall <application ID> - AppImage: delete the AppImage file.
- Debian/Ubuntu:
- Delete the following folders, if they exist:
~/.config/ownCloud~/.local/share/ownCloud~/.cache/ownCloud
- Open your keyring manager (e.g. Passwords and Keys), search for
owncloudand delete the matching entries.
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 a terminal and run:
bash -c '
command -v owncloud
for p in "$HOME/.config/ownCloud" "$HOME/.local/share/ownCloud" "$HOME/.cache/ownCloud"; do
[ -e "$p" ] && echo "Still present: $p"
done
flatpak list 2>/dev/null | grep -i owncloud
{ dpkg -l 2>/dev/null; rpm -qa 2>/dev/null; } | grep -i owncloud
true'If the uninstall was successful, the command prints nothing. If it prints something, remove the listed application, folder or file 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 home folder:/home/<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, run
du -sh ~/ownCloudto see the size of your ownCloud folder anddf -h ~to see the free space on your disk. You can also right-click your ownCloud folder > Properties in your file manager. 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 usually moves files and doesn’t copy them. Use the keyboard shortcuts below.
File manager (e.g. GNOME Files, Dolphin; hidden files are not shown unless you pressed Ctrl + H, 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.
Terminal (adapt the paths if your folders have other names or locations):
To copy:
rsync -a --exclude='.*' ~/ownCloud/ ~/Nextcloud/To move:
mv ~/ownCloud/* ~/Nextcloud/
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#
Install the Nextcloud desktop client with one of the following options:
- Distribution package: easiest option, but the version may be older than the latest release. Requires
sudo.- Debian/Ubuntu:
sudo apt install nextcloud-desktop - Fedora:
sudo dnf install nextcloud-client
- Debian/Ubuntu:
- Flatpak:
flatpak install flathub com.nextcloud.desktopclient.nextcloud - AppImage: download it from the Nextcloud download page, make it executable (
chmod +x Nextcloud-*.AppImage) and run it. Store the AppImage in a permanent location (e.g.~/Applications), as the client is started from this file every time.
To show sync status icons and a Nextcloud context menu in your file manager, install the matching plugin from your distribution, e.g.
nautilus-nextcloud(GNOME Files) ordolphin-nextcloud(KDE Dolphin) on Debian/Ubuntu.- Distribution package: easiest option, but the version may be older than the latest release. Requires
Start the Nextcloud client. If the client asks whether you want to import a legacy configuration (e.g. from ownCloud), click Skip. If it shows the message Could not import accounts from legacy client configuration, click OK. 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 system tray / notification area of your desktop (e.g. KDE Plasma, Xfce). Click this icon, then Open main dialog, to open the client.
GNOME has no system tray by default: enable the AppIndicator extension (preinstalled as Ubuntu AppIndicators on Ubuntu, otherwise install the
gnome-shell-extension-appindicatorpackage and enable it in the Extensions app), then log out and back in.If there is no icon at all, run
pgrep -a nextcloudto check that the client is running. If it is not running, start it again from your application launcher.In the Add Nextcloud account window, click Log in.
Enter the server address https://nextcloud.lcsb.uni.lu and click Next.
The client asks you to switch to your browser, which opens automatically. If it doesn’t, click Reopen Browser.
In your browser, 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#
After login, the Add Nextcloud account window asks you which local folder to synchronize.
Under Local Folder, click Choose different folder and select the
Nextcloudfolder you created in step 6.Choose what to sync:
- Synchronize everything from server: all your Nextcloud files are downloaded.
- Choose what to sync: click the button, select the folders to synchronize, then click OK. 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.
::: centered-block
:::Because your
Nextcloudfolder is not empty, the client shows Warning: The local folder is not empty. Pick a resolution! Select Keep local data.::: centered-block
:::::: danger-box Never choose “Erase local folder and start a clean sync”
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), do not continue. Click Choose different folder and select your
Nextcloudfolder. :::Click Connect. The first synchronization starts. It can take a while, depending on the number and size of your files.
::: centered-block
:::
Clicked “Skip folders configuration” by mistake?
Click the Nextcloud icon, then Open main dialog. Click your account name at the top left, then Settings. In the settings window, click Add Folder Sync Connection and select your Nextcloud folder as the local folder. Choose Keep if asked whether to keep or erase local files.
9. Verify your setup#
Once the first synchronization is finished:
Check that the Nextcloud icon in the system tray shows a green check mark.
Click the Nextcloud icon, then Open main dialog, 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 trash, then empty the trash.
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 (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.