Exclude files/directories when using linux tar command
To exclude files/folders when archiving using tar in linux, use the following command:-
tar -czvf filename.tar.gz --exclude 'path1/*' --exclude 'path2/*' --exclude 'path3/*' folder_or_files_to_be_archived
References:-
http://www.wallpaperama.com/forums/how-to-exclude-a-directory-in-a-tar-l...
http://www.cyberciti.biz/faq/exclude-certain-files-when-creating-a-tarba...
http://www.linuxtopia.org/online_books/linux_tool_guides/tar_user_guide/...
- Add new comment
- 26 reads
Configure multiple log4j instances in different contexts
The problem:
We needed to use different log4j.properties file for each context.
We have one library (directory.jar) which resides in tomcat's shared lib that uses log4j. We also have three contexts (core, admin & user contexts) that will be using log4j for logging too.
Initially, we put the log4j library in tomcat's shared lib, and specify log4j.properties for each context's web.xml. But we found out that only one context is able to initialize the log4j properly. The other two contexts doesn't seem to be able to use log4j properly.
- Add new comment
- Read more
- 38 reads
Drupal Blog Page Not Found
If you have the problem of not being able to see the Blog Module page after enabling it, and you are using Clean URL for your site, then it's *probably* because you have accidentally created a subdomain with the name 'blog' (e.g. http://blog.example.com), or you have a subdirectory named 'blog' on your website's root folder (www, htdocs or public_html). You should be able to see Drupal's Blog Module after you remove the subdomain / subdirectory with that same name.
- Add new comment
- Read more
- 337 reads
XAMPP Virtual Hosts in Ubuntu
Quick HOWTO to enable Virtual Hosts with XAMPP on Ubuntu (or any *nix distribution).
shell> sudo gedit /opt/lampp/etc/httpd.conf
Uncomment the line below (it should be towards the end of the file):
Include etc/extra/httpd-vhosts.conf
Save & Close the httpd.conf file.
shell> sudo gedit /opt/lampp/etc/extra/httpd-vhosts.conf
Make sure the line below is uncommented:
NameVirtualHost *:80
Add/Edit the following piece of code:
<VirtualHost *:80>
ServerAdmin admin@localhostPrevious Hosting Server Breakdown
I'm sorry for the inconvenience caused. Most of the resources you're trying to look for are not available. My previous hosting provider recently had a major server breakdown, causing all data to be lost. I will try my best to get the posts back up as soon as possible.
- 1 comment
- 520 reads
Recent comments
26 weeks 3 days ago
30 weeks 1 day ago