# Migrating from ownCloud to Nextcloud

**URL:** <https://help.nextcloud.com/t/migrating-from-owncloud-to-nextcloud/551>\
**Category:** 📑 How to\
**Tags:** owncloud, oc\_migration\_issue\
**Created:** [June 14, 2016, 12:27pm UTC](https://help.nextcloud.com/t/migrating-from-owncloud-to-nextcloud/551 "2016-06-14T12:27:39Z")\
**Posts on this page:** 1\
**Showing post:** 67

<div class="post-metadata">

**Author:** ![Mack\_Baise](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mack_baise/32/30987_2.png) [@Mack\_Baise](https://help.nextcloud.com/u/Mack_Baise)\
**Post date:** [August 15, 2016, 7:05am UTC](https://help.nextcloud.com/t/migrating-from-owncloud-to-nextcloud/551/67 "2016-08-15T07:05:53Z")

</div>

Hey everyone,

The support was a little vague on the Nextcloud site.

Here are some more specific directions:

😄

1. First you want to make a copy/backup of your Owncloud folder.

sudo cp -r /var/www/owncloud /var/www/owncloud.old

1. Then remove everything inside your owncloud folder.

sudo rm -rf /var/www/owncloud/\*  
sudo rm -rf /var/www/owncloud/.\*

1. The reason we made a backup of the Owncloud folder was to make sure we still  
have the config and data, so cp that in to the owncloud folder again

sudo cp -r /var/www/owncloud.old/config /var/www/owncloud/  
sudo cp -r /var/www/owncloud.old/data /var/www/owncloud/  
sudo cp /var/www/owncloud.old/.htaccess /var/www/owncloud/  
sudo cp /var/www/owncloud.old/.user.ini /var/www/owncloud/

1. Install Nextcloud

We are going to download nextcloud, make sure you get the latest release

cd /temp  
wget [https://download.nextcloud.com/server/releases/nextcloud-9.0.50.tar.bz2](https://download.nextcloud.com/server/releases/nextcloud-9.0.50.tar.bz2)

1. Extract the tar ball and move it to Apache’s web root.

tar -vxjf nextcloud-9.0.50.tar.bz2  
cd nextcloud  
mv \* /var/www/owncloud/

1. Change the permissions while in the owncloud directory(it now has newcloud files inside of it):

wwwrun:www \* -R or chown www-data

1. The last thing we will need to do is the upgrade to Nextcloud.

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

And that should be it! open up your browser and enter your IP/FQDN to confirm it works!

I did copy most of this information from:  
[https://techknight.eu/2016/06/15/migrate-owncloud-nextcloud-linux/](https://techknight.eu/2016/06/15/migrate-owncloud-nextcloud-linux/)

> **[Migrating to Nextcloud 9](https://blog.jospoortvliet.com/2016/06/migrating-to-nextcloud-9.html)**
>
> A blog about Community Management, Open Source and Linux.

and

> [@ownCloud 9.0.2 Stable to NextCloud](https://help.nextcloud.com/t/owncloud-9-0-2-stable-to-nextcloud/1279):
>
> Hi All - Running ownCloud 9.0.2 and would like to migrate to NextCloud. I am using Server Side Encryption. Can anyone provide details on how to migrate? This is on Ubuntu 14.04.4 LTS btw. Thanks, Jon

They were good posts, but missing some commands. Hopefully this helps!

Cheers,

Mack

---

_[View the full topic](https://help.nextcloud.com/t/migrating-from-owncloud-to-nextcloud/551)._
