CumulusClips - Forums
Video storage location change
@Damian : We want to host our videos on a external drive (not inside the installation directory), is it feasible to change the video files location, through some setting in file/db?
Comments
Here is an example on Ubuntu Server to do this process.
## Stop the web service
service stop apache2
## Move the current uploads folder somewhere else
mv /var/www/cumulus/uploads /var/www/tmp-uploads
## Create an "uploads" link where it used to be and send to another location.
sudo ln --symbolic /mnt/usbhd /var/www/cumulus/uploads
## Move the files to the new location
mv /var/www/tmp-uploads/* /mnt/usbhd/uploads/.
## Set ownership of the files to the web service account if necessary
chown www-data:www-data -R /mnt/usbhd/uploads/*
## Remove the temporary directory
rmdir /var/www/tmp-uploads
## Start the web service
service start apache2
You should now have:
/var/www/cumulus/uploads -> /mnt/usbhd/uploads
Anything written under the /var/www/cumulus/uploads folder should actually be going to /mnt/usbhd/uploads
LHammonds