LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-29-2004, 08:36 PM   #1
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Rep: Reputation: 30
tar exceptions


Hello.

I was wondering if there is a way I can leave out specific folders when doing a tar backup?

I have cron running a tar backup of a folder which contains around 70GB of data. One of the folders is a temp folder that contains about 20GB of stuff that isn't critical data, and if a disaster happens and that folder goes, is no real problem.

Is there anyway I can leave out this folder without creating a tar backup and naming each folder to backup one by one?

Thanks alot,

Regards,
Craig
 
Old 08-29-2004, 09:03 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
try something like this....
tar -cvf /mnt/backup/file.tar . --exclude ./temp
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 03:48 AM
Exceptions bianchi Programming 1 11-17-2005 09:36 PM
Regarding Exceptions eshwar_ind Programming 1 05-03-2005 01:23 PM
squidGuard exceptions? twistedpair Linux - Software 1 09-02-2004 05:49 PM
exceptions of Python~ black Programming 2 09-09-2002 06:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration