Report this

What is the reason for this report?

Any help on transitioning from OwnCloud to Nextcloud?

Posted on August 3, 2016

I installed Owncloud via Digitalocean’s One-click. So, I’d love to switch to Nextcloud without losing data. It looks like some people have been successful at doing this, but nothing one-click, digital ocean specfic.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Well it all went well till the very last step ie sudo -u www-data php occ upgrade which didnt work, file not found . i have no occ in /var/www/owncloud

Hi!

The ownCloud 1-click image is just an ownCloud instance pre-installed on a Droplet. It isn’t any different from a regular ownCloud instance that is manually installed on any other Linux server.

Migrating an ownCloud instance to NextCloud is very simple. Start off by taking a backup of your files and database:

sudo cp -r /var/www/owncloud ~/owncloud_backup_pre_migration
sudo mysqldump --lock-tables -u root owncloud > owncloud_backup_pre_migration.sql

Delete everything but the config and data directories. We’ll do that by creating a new directory and moving the directories that we want to keep to it.

sudo mkdir /var/www/nextcloud
sudo mv /var/www/owncloud/config /var/www/nextcloud/
sudo mv /var/www/owncloud/data /var/www/nextcloud/

Then, download and extract Nextcloud into the new directory. You can grab the latest release’s download URL from this page.

cd /var/www
wget -O nc.tar.bz2 https://download.nextcloud.com/server/releases/nextcloud-9.0.53.tar.bz2
tar vxjf nc.tar.bz2
rm nc.tar.bz2

Remove the owncloud package:

sudo apt-get remove owncloud

Now, delete the old owncloud directory and rename the new one to owncloud:

sudo rm -r /var/www/owncloud
sudo mv /var/www/nextcloud /var/www/owncloud

Finally, trigger the upgrade:

cd /var/www/owncloud
sudo -u www-data php occ upgrade

You should now be running a working nextCloud instance. Good luck, and let me know how it goes!

Heya,

You can check their updated article about the migration here:

https://docs.nextcloud.com/server/latest/admin_manual/maintenance/migrating_owncloud.html

I believe that the occ file might be in a different directory so you can use the 'find` command to locate the file’s correct directory.

Regards

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.