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


You are not allowed to post comments on this tracker with your current authentication 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: DonePrivacy: Public
Assigned to: Sergey Poznyakoff <gray>Originator Email: -unavailable-
Open/Closed: Closed

Sat 22 Feb 2014 06:19:41 AM UTC, comment #1:

Thanks a lot for the idea and apologies for waiting so long with its implementation. I have pushed this: This commit implements the --exclude-ignore and --exclude-ignore-recursive options that work much as the --exclude-auto you proposed, and the --exclude-vcs-ignore option, which automatically processes ignore files from several most popular version control systems.

Sergey Poznyakoff <gray>
Project AdministratorIn charge of this item.
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):
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.

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

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



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


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by gray (Updated the item)

    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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 22 Feb 2014 06:19:58 AM UTCgrayOpen/ClosedOpen=>Closed
    Sat 22 Feb 2014 06:19:41 AM UTCgrayStatusIn Progress=>Done
    Fri 14 Feb 2014 08:53:29 AM UTCgrayStatusNone=>In Progress
      Assigned toNone=>gray
    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-cleanup1