DBWS.NET

How to backup a folder & exclude all images

By admin on Saturday, 9 of June , 2007 at 11:40 am

The code below will first create a file called Exclude containing the paths to all common document files I wish to exclude from my backup, images, documents etc.

Secondly the tar command will be used to create a compressed tgz containing everything in the given folder and recursive folders excluding the files as detected.

 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Furl
  • Reddit
  • Spurl
  • StumbleUpon
  • Technorati
  • DotNetKicks
  • Slashdot

Leave a comment

Category: Linux

About...

I am David Brown, a freelance software & website developer with an endless passion for learning. I am blessed with a wonderful wife and 3 fantastic children. I am one of rare brits who couldnt care less about soccer but loves diving, surfing & windsurfing.