How to move Owncloud X to another disk partition

Dear All

             How do I move the existing owncloud x from /var/www/html to other disk partition which has 1.64 TB ?

Who is Participating?
Sam Simon NasserIT Support ProfessionalCommented:
nociSoftware EngineerCommented:
I agree with Sam Simon Nasser.
Just moving the data is what is needed, (be sure nginx/lighttpd/apache has access to the target directory, that step isn't shown in his link).
Following that recipe use /STORAGE on all places that mention /mnt/owncloud

chmod 775 /STORAGE
chown www-data:www-data /STORAGE
(in stead of www-data it might need something else, please check the owner & group of the original. /var/www/html )

Moving all of /var/www will a bigger effort with nginx/lighttpd/apache configs.
Prabhin MPEngineer-TechOPSCommented:
Step1. mount  the new harddisk. make the entry in fstab.
step2. create a folder in the HDD.
step3. copy all the contents from owncloud location to new location.
step4. delete the owncloud folder
step5. Create a symbolic link to new hdd location.
step6. restart the webserver.

The following link is an example for another application.

Hope this will help you!!!
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

nociSoftware EngineerCommented:

Splitting the data away from owncloud has some more benefits, like not offering a backdoor to the data.
so your solution does provide some consolense, and might replace it with an update headache.
If moving the whole tree, then it would be better to move the /var/www somewhere else according to your method.
Prabhin MPEngineer-TechOPSCommented:
yeah he can choose that option as well.
Prabhin MPEngineer-TechOPSCommented:
still this issue not yet solved?
Sam Simon NasserIT Support ProfessionalCommented:
nest solutions
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.