patchGNU tar - Patches: patch #4701, New feature: auto-exclude (for...

 
 

You are not allowed to post comments on this tracker with your current authentification level.

patch #4701: New feature: auto-exclude (for .cvsignore)

Submitted by:  None
Submitted on:  Wed 14 Dec 2005 04:42:02 PM UTC  
 
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOriginator Email: -unavailable-
Open/Closed: Open

Wed 14 Dec 2005 04:42:02 PM UTC, original submission:

Please take the time to evaluate my proposal on this new feature

The Fairy tale:
I wanted to use plain tar for my backups. The, I try to reduce the files beind backed up by tar. Some backup suites try to scan themselves the directories and find the files and give 'tar' a ready list. I thought that scanning the dirs 2 times would be sub-optimal. Adding myself a huge list of excluded files is also out of the question. On the other hand, I have some .backupignore, .cvsignore, .svnignore etc. files ready. The problem is that they apply only to the directories they reside on (and subs).

The feature (applies to 'create' mode):
--exclude-auto=<fname>
Whenever a file named <fname> is found during the recursion, read it and append its contents to the exclude patterns. The extra patterns will aply to that dir and its subdirectories. Multiple --exclude-auto options can be specified.

Example:
tar -cvzf home-backup.tar.gz -X /etc/global.excludes \
--exclude-auto=.cvsignore --exclude-auto=.backupignore /home/me/

Bugs:
I have not tried to figure out what happens in the case of an incremental backup (-g).
- Please 'valgrind' it.

Anonymous

 

Attached Files
file #4166:  tar-auto-exclude.patch added by None (14kB - application/octet-stream - Exclude-auto feature)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 14 Dec 2005 04:42:03 PM UTCNoneAttached File-=>Added tar-auto-exclude.patch, #5595
  Carbon-Copy-=>Added p_christ --AT-- hol --DOT-- gr

Back to the top


Powered by Savane 3.1-cleanup