uBuntu – Move ownCloud Data To New Location


This video goes through the steps on how to move your ownCloud data to a new location.

The steps used in the video are below:

Stop apache2

sudo service apache2 stop

Edit config file in default location

sudo nano /var/www/html/owncloud/config/config.php

Change default location to new location

(please check video)

Move the data folder to new location

sudo mv /var/www/html/owncloud/data /mnt/owncloud_data

**********************************************************************
if required change permissions

sudo chown -R www-data:www-data /mnt/owncloud_data

**********************************************************************

Restart apache2

sudo service apache2 start

  • vdidwania

    Great tutorials on Owncloud setup on Ubuntu. Currently have Ubuntu VM running on Hyper-V inside Windows 8.1, where all my data is stored. Any ideas on how to mount a Windows SMB/CIFS share into the Ubuntu VM Owncloud and how to do it permanently? thanks in advance!

    • @vdidwania:disqus I know you can do it in a normal install so you should be able to do it in a VM environment as well. I would have to look into it more but if you look into fstab that is where it would be to make it permanent.