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

Post a Comment

Add a New Comment Rich Markup
   

Discussion

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>

 

Attached Files

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

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

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

    Votes

    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.

     

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

    History

    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.16-a7ba.
    Corresponding source code