Migrating from ownCloud to Nextcloud

At the moment we support migrations from:

To upgrade manually please follow the usual upgrading steps:

  1. Delete everything from the ownCloud folder except data and config
  2. Download the Nextcloud 9 (10, 11, 12…) release from https://nextcloud.com/install/
  3. Put the files into the folder where the ownCloud files where before
  4. Trigger the update either via OCC or via web.

We are working on a more automated migration approach and will share more information on that here as soon as we have something to announce or test.

Thanks a lot for using Nextcloud! :slight_smile:

ATTENTION: If you have installed ownCloud via packages make sure to remove the packages first. Otherwise a potential update of the ownCloud packages will break your instance.


Feedback always welcome!


As always:
Do backups of your data and the config beforehand.

1 Like

Any ETA on when the distribution packages will be available?
I’d like to update but I’d prefer if this would be possible through the debian/ubuntu archives? (I’m aware I have to switch out repositories, but that’s fine.)


Migrating if you are running from git is easy:

git remote remove origin
git remote add origin https://github.com/nextcloud/server.git
git fetch
git checkout stable9

then do a normal upgrade with ./occ upgrade

1 Like

we don’t have any plans of making packages ourselves (for now). It was a mess in the past, with quality issues and conflicts with the distributions. I hope they pick it up.

1 Like

So I should be able to update the website to Nextcloud with minimal issues and the clients will pick up the new site even if I don’t change it to the Nextcloud client (yet)?

I plan on converting it all to Nextcloud but need to do it with minimal interruption.

That is the expected behaviour and how it should and does work, yes. If it causes any problems please file an issue :slight_smile

Is it possible to install nextcloud with package manager (apt-get) and do manual migration?

we have no packages yet - not sure if that comes, see above - we don’t plan on doing it ourselves as that has been too troublesome in the past.

1 Like


migration to nc worked here without problems from OC 9.0.2 under ubuntu 14.04 lts on odroid xu4 :slight_smile:

Thanks for your hard work!

Until migration I used the package manager to update with apt-get.
Is it save to remove it now and if yes, how?


In case of package install, like apt-get on debian based distrib, how do I make sure there won’t be any conflict in the future?
Can I remove the package first and do the manual migration?

$ apt remove owncloud
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
libapache2-mod-php5 libicu52 libmcrypt4 libpq5 owncloud-deps-php5
owncloud-files php-pear php-xml-parser php5 php5-cli php5-curl php5-gd
php5-intl php5-mcrypt php5-mysqlnd php5-pgsql php5-readline php5-sqlite
Use ‘apt-get autoremove’ to remove them.
The following packages will be REMOVED:
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 25.6 kB disk space will be freed.
Do you want to continue? [Y/n]

Yes you can remove owncloud package (i’ve done it) BUT :

Evidently, DON’T do an “autoremove” ! You need these packages. (Dependencies).


Hmm, if you used the ownCloud provided packages it is best to save the config files and the nextcloud folder itself before you move over. The ‘normal’ packages (not owncloud-files) installs something in the etc/apache folder: etc/apache2/conf-available/owncloud.conf - might be good to have a look at what that is and how it helps :wink:

Otherwise, save the nextcloud folder and you should be good.

1 Like


removed it with
$ apt remove owncloud
after migrating to nextcloud under ubuntu 14.04 lts. No issues.

Thanks to @Akhenaton and @coolnodje and @jospoortvliet !



That means i never can do an “autoremove” in the future. What about apt-get dist-upgrade? Isn’t that removing packages.

Or is there a way to remove oc with all dependencies and reinstall nextcloud. But what dependencies then to install. What about the configuratin aof them (mysgl, apache for example)

Isn’t there a clean way to switch to nextcloud? Do i have to remove the owncoud.lists from apt?

1 Like

I suggest you to do a “man apt-mark”

Tip: Use the command apt-mark showmanual to see what is currently marked as manual on your system.
Tip: Use the command sudo apt-mark [auto | manual] to change a package’s (or list of packages) marking

If you mark the packages “manual” it will be preserved and never removed by an “autoremove” (as if it has been installed by you and not by dependencies)


Hmm, I’m not too sure whether I am capturing this thread now, as the discussion took it elsewhere. Alas, the thread title is just too suiting not to :stuck_out_tongue:

Speaking of "Migrating from OC to NC…

In another thread (Why?), one can learn about the decision being difficult for end users whether to upgrade now or later etc.pp.:

My suggestion to aid these users, who haven’t or even cannot decide(d) yet, simply because there is too much work and/or customers and talking involved:

Keep NC 9.050 available as well as the migration path from here on (aka major versions to come). This would probably help some users to stick with OC 9 for now and to sit and wait what the future brings for both projects. When they finally learn that NC is the better choice for them (which, of course, they will undoubtly do :stuck_out_tongue: ), easy migration is still at hand.

As a second step (in case you guys get bored gg), you could offer something like a “migration pack” … whatever this may require or look like .

Just my 0,02€



Yes please!

I’d like to see how things develop a little first, rather than getting backed into a corner of ‘switch now, or you’ll never be able to’.


I’ve successfully upgraded from OC8.2 to NC9 using the method described, yay!
Edit: Below is resolved, missing file.
Security log shows an integrity warning about a .htaccess file, don’t think it’s relevant as I’m using nginx, which does not use those.
Is nginx supported by nextcloud?

1 Like

I’m also migrated from OC to NextCloud successfully!
It working good overall.

However, the ClamAV still not working as before in OC.
It giving me errors.
Hope you guys fix it soon.

Thanks for the NextCloud.

1 Like