Found this while searching for RewriteRule flags explanation. It's great.
http://www.ilovejackdaniels.com/cheat-sheets/mod_rewrite-cheat-sheet/
On a side note, I still couldn't disable the rewriting for one particular directory, and still haven't found, why. Oh well, just disabled it for .gif files and it's apparently working, so who cares.
Wednesday, March 26, 2008
Tuesday, March 25, 2008
Excluding directories from rsync backup
The thing is, some a**hole clients of hours don't mind keeping a lot of useless data on their servers. Basically I don't mind either, but this one time I had to discover, that because of this, the backup server ran out of space on one of its HDDs.
So I set to investigate the options, and the useful thing I discovered was how to exclude directories in rsyncd.conf.
Here's an example.
[hosts]
path = /home/hosts
comment = serv1
hosts allow = x.x.x.x
exclude = www.domain1.com/ www.domain2.com/
This will exclude directories named domain1.com and domain2.com. More on the syntax of the exclude command can be found at
http://www.ss64.com/bash/rsync.html
So I set to investigate the options, and the useful thing I discovered was how to exclude directories in rsyncd.conf.
Here's an example.
[hosts]
path = /home/hosts
comment = serv1
hosts allow = x.x.x.x
exclude = www.domain1.com/ www.domain2.com/
This will exclude directories named domain1.com and domain2.com. More on the syntax of the exclude command can be found at
http://www.ss64.com/bash/rsync.html
Subscribe to:
Posts (Atom)