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)

Submitter:  None
Submitted:  Wed 14 Dec 2005 04:42:02 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  gray Originator Email:  -email is 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: http://git.savannah.gnu.org/cgit/tar.git/commit/?id=93906c238d9309f95afeddfa9ac8d7ce92351e70.  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>
Group administrator
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

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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
  • -email is unavailable- added by gray (Updated the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-02-22 gray Open/ClosedOpen Closed
    2014-02-22 gray StatusIn Progress Done
    2014-02-14 gray StatusNone In Progress
        Assigned toNone gray
    2005-12-14 None Attached File- Added tar-auto-exclude.patch, #5595
        Carbon-Copy- Added p_christ --AT-- hol --DOT-- gr

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code