Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Oct 21, 2008 4:58 pm 
Offline
Senior Newbie

Joined: Fri Sep 19, 2008 8:12 pm
Posts: 6
Website: http://pshields.net
AOL: mercurylime
I've been hosting virtually everything out of /var/sites/ on my Ubuntu server, but I was wondering if there was a more standard directory for hosting from.

Also, if I upload media to my server, is it best practice to put that in the same folder as my other hosted files or in perhaps /home/user/ ?

Secondly, I'm trying to set weekly backups on my machine. Are there any folders I don't need to backup or would you recommend backing up the entire server, kernel and all? Also, what backup solution do you recommend?


Top
   
 Post subject:
PostPosted: Tue Oct 21, 2008 11:36 pm 
Offline
Senior Member

Joined: Fri Sep 12, 2008 3:17 am
Posts: 166
Website: http://independentchaos.com
To FHS Standards: /srv/<service> is supposed to be for externally sourcing services (ie ftp, http, etc) but Linux is about choice, so do as you wish, or to your distro standards.

Media is more however you want to do it. A slightly more appropriate directory might be /usr/share/<media>, but again however you really want to do it.

For backups:
* no need to back up /dev/, /tmp/, /mnt/, /proc/, /lost+found/, /boot/
* backups are for data, mostly. Although it does make it kinda easy to start finnix, and drop everything in after a linode install, and be up and running as you were before whatever struck.

** please note to take with a grain of salt, it is just how I do things on my server. Linux is about choice on everything. Do as you want, although many things can make sense in many different ways.


Top
   
 Post subject:
PostPosted: Wed Oct 22, 2008 4:06 pm 
Offline
Senior Newbie

Joined: Sat Jan 19, 2008 9:39 pm
Posts: 10
Website: http://jacob.peddicord.net/
This may be naive, but I just serve everything out of /home. I came from DreamHost, so I just adopted their storage style of /home/username/domain.com. Makes it really easy for backups.


Top
   
 Post subject:
PostPosted: Wed Oct 22, 2008 5:24 pm 
Offline
Senior Member

Joined: Sun Nov 14, 2004 6:37 pm
Posts: 138
Website: http://oldos.org
WLM: jasonlfaulkner@hotmail.com
Yahoo Messenger: jasonfncsu
AOL: jaylfaulkner
Location: NC, USA
I use /var/www/domain/www with lighttpd's "simple vhost" module. I think as long as it's consistent for your install, do what you feel is best.

_________________
Jay Faulkner
http://oldos.org


Top
   
 Post subject:
PostPosted: Wed Oct 22, 2008 7:51 pm 
Offline
Senior Member

Joined: Sun Nov 30, 2003 2:28 pm
Posts: 245
My tendency would be one of:

1. If I'm hosting one or more sites, but adminning them myself, a structure under /srv for the pages, media, and DB files (if any).

2. If I providing hosting to joe the user, I'd set them up under /home/joe.

I wouldn't mess around under /usr, since most package systems assume they own it (which is why I don't like /var/www, either). Of course, /usr/local/* is yours.

If you're uploading media via the webserver (like a picture gallery, or user forum icons, or some such), it should definitely be in its own directory, with appropriate permissions.

For backups, I don't backup stuff that I can re-install with apt-get. I *do* backup configuration files, though (all of /etc, basically). One important bit to backup is the list of installed packages; in a Debian based system, get /var/backups for several good things. Actually, /var is tricky, there's lots of big things you don't need backed up, ususally, but picking and choosing is a pain. For example, you *might* not want /var/log, depending on how you feel about log files, and /var/cache, which by definition can be rebuilt. Since I don't put any local stuff under /usr, I don't back it up.

_________________
The irony is that Bill Gates claims to be making a stable operating system and Linus Torvalds claims to be trying to take over the world.
-- seen on the net


Top
   
 Post subject:
PostPosted: Thu Oct 23, 2008 2:41 am 
Offline
Senior Member

Joined: Fri Sep 12, 2008 3:17 am
Posts: 166
Website: http://independentchaos.com
jpeddicord wrote:
This may be naive, but I just serve everything out of /home. I came from DreamHost, so I just adopted their storage style of /home/username/domain.com.


That could get really sexy if you do apache forking by hosting under different UID/GID for each domain respectively .


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group