bugGNU tar - Bugs: bug #62635, Add possibility to tar stdin and...

 
 

bug #62635: Add possibility to tar stdin and specify filename by args

Submitter:  None
Submitted:  Wed 15 Jun 2022 02:14:20 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Postponed
Privacy:  Public Assigned to:  gray
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 11 Feb 2023 01:08:19 PM UTC, comment #1: 

For archiving a file, tar need to know its size beforehand.  It is impossible when reading input from the stdin.

An option would be to write a placeholder header, pull in the content of stdin up to EOF, seek back to the header location, update it and seek back to the end of archive.  This approach would work if the archive is seekable.

However, it will require a considerable reworking of the tar code, and I'm not sure of all the consequences it will entail.

For the moment, I'm marking this as postponed.  Feel free to post here your suggestions and thoughts.

Sergey Poznyakoff <gray>
Group administrator
Wed 15 Jun 2022 02:14:20 PM UTC, original submission:  

So for now we need to do like this:
```
ifconfig > ifconfig.log
journalctl -b > journal.log
tar -cf support.tar ifconfig.log journal.log
rm -f ifconfig.log journal.log
```

What would be interesting is like this:
```
ifconfig | tar -cf --name ifconfig.log support.tar -
tar -rvf test..tar one_more_file.txt
journalctl -b | tar -rf --name journalctl.log support.tar -
```

1. Support read content from stdin
2. New argument --name to specify filename for it

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gray (Posted a comment)
  •  

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

    Date Changed by Updated Field Previous Value => Replaced by
    2023-02-11 gray StatusNone Postponed
        Assigned toNone gray

    Back to the top

    Powered by Savane 3.13-c373.
    Corresponding source code