Move polipo's cache directory to its own partition
Follow @ggarronIf you are running
polipo and run out of disk space you have two options, one is to reduce the space polipo is using in /var/cache/polipo/ thus, fine tunning cache server or to change the cache directory to its own partition. Here we will see this second option
First you need to partition the disk, then format the linux partition.
Once those steps are finished, we can start the process of moving the polipo cache directory, which is by default located at: /var/cache/polipo.
Assumptions
The polipo cache directory is: /var/cache/polipo/ The new formated partition is: /dev/sdb1/ The file system of the new partition is: ext3
you will have to modify this how to according to your data.
Mounting the new partition
sudo mkdir /media/cache
sudo mount -t ext3 /dev/sdb1 /media/cache
Copying the files
sudo cp /var/cache/polipo/* /media/cache/* -R
Checking ownership and permissions For this to work, you will need to be sure that the ownership and permissions of the copied files are the same as the original ones. Use chown and chmod to change those parameters, you can modify this Home privacy tip to work for this purpose. Reconfiguring and restarting The last step is to edit the config file, be sure to have this line in /etc/polipo/config file.diskCacheRoot = "/media/cache/polipo/"Modify as you need, and the restart polipo.
sudo /etc/init.d/polipo restart