mainGNU tar - Support: sr #107564, Feature request: option for...


sr #107564: Feature request: option for automatically fixing privileges on archive creation

Submitter:  Oleg <cronfy>
Submitted:  Sat 01 Jan 2011 10:42:41 PM UTC
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup

Thu 06 Jan 2011 03:29:27 PM UTC, comment #1: 

First version of patch did not work with incremental archives. I corrected it, not it deals with thec correctly. I attached new version to the ticket.

(file #22364)

Oleg <cronfy>
Sat 01 Jan 2011 10:42:41 PM UTC, original submission:  

When GUN Tar is used to backup user data, it may fail to archive some files because of wrong permissions on them (i.e. user did chmod 000).

It may be desired that user data would be archived anyway. 'chmod -R  u+rX' could be run before 'tar -c', but if user has many files, it costs resourses and is not guaranteed that permissions will be still correct on tar invocation.

To solve this problem on our servers I created a small patch that adds --fix-permissions option, that fixes permissions on the fly if it is required.

I attached this patch (against 1.25) to the ticket. Feature request is to add this patch to the distribution :)

Oleg <cronfy>


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

Attach Files:

Attached Files
file #22364:  fix-permissions.patch added by cronfy (5KiB - text/x-patch - another version of patch that works with incremental archives)
file #22334:  fix-permissions.patch added by cronfy (3KiB - text/x-patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by cronfy (Submitted the item)
  • -email is unavailable- added by cronfy

    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.

    Only logged-in users can vote.


    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-01-06 cronfy Attached File- Added fix-permissions.patch, #22364
    2011-01-01 cronfy Attached File- Added fix-permissions.patch, #22334
        Carbon-Copy- Added cronfy

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code