Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've finally upgraded to a VPS. I'm planning to run about 4 - 6 sites off it each with a fairly sizable files directory. That is, user uploaded media content such as images and video clips.

I usually have a sites' files directory separate from the site itself connected by a symlink. I do this to make it easier to check sites into subversion as I do not want these kinds of files in my repositories.

On a Linux server where would be the best place to store these files?

Thx

share|improve this question

closed as not constructive by Nifle, Mokubai, slhck, Journeyman Geek, studiohack Jul 21 '12 at 20:27

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 0 down vote accepted

There are multiple possibilities. First of all, you probably have an account other than root on those machines, which you use for your maintenance work. So one place could be that users home directory (say, /home/maintuser).

If you want to have those files stored separately from any user account, the place to locate them under is either /usr/local (the "local" indicates it is not maintained by the system; this is also where one should install manually-compiled software, as opposed to those software being installed via the systems packaging system -- i.e. .tar.gz opposed to .deb, .rpm etc).

A third common place is just below /opt, which originally was used for 3rd party "unfree" installations.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.