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 Download and install Nextcloud
  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.

Updates:

Feedback always welcome!

7 Likes

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.)

2 Likes

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

Hello,

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?

Ciao,
Joachim

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:
owncloud
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).

2 Likes

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

Hello,

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

Thanks to @Akhenaton and @coolnodje and @jospoortvliet !

Ciao,
Joachim

4 Likes

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)

3 Likes

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ā‚¬

John

2 Likes

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ā€™.

2 Likes

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