HowTo:Change the location of the stored data
From iFolder
| Table of contents |
Relocate Store Directory
It may be necessary to relocate the ifolder store which contains the data of all your ifolders. In my case, my primary hard drive is signicicantly smaller than my secondary drives. Following this procedure will allow you to relocate the store so that it may be located in another location.
Make New Store Directory
First, create a new directory for the ifolder repository. In my case my new directory was "/srv/simias"
cd /srv mkdir simias
Copy Contents Of Current Store Directory to the New Directory
cp -R /var/lib/simias/* /srv/simias
Rename the old directory
cd /var/lib mv simias simias-old
Make a New Symbolic Link
cd /var/lib ln -s /srv/simias/ simias
Apply Appropriate Group Permissions to Link and New Store Locaton
This is very important. Make sure the permissions of both the link and the files did not change, as well as the group memebership.
To change the ownership of a symbolic link use the following.
chgrp -h www simias chown -h wwwrun simias
To change the permissions and ownership of the files.
chgrp -R www /srv/simias chown -R wwwrun /srv/simias
Thats It! If you produce errors, ensure that the permissions of the files/directories are the same of your new directory as the were of the old.
