4 ms·
Another nice feature I used a long time ago from a shell script: you can send filenames to archive via a pipe (stdin). So you can fork a cpio and send it file
by sllabres 3y ago
Another nice feature I used a long time ago from a shell script:
you can send filenames to archive via a pipe (stdin). So you can fork a cpio and send it file for file over a period of time during their creation.
That wasn't possible with tar at the time. (I think it's the same today)
- 1letterunixname 3y agoYou can do it with GNU tar -T but it often requires shell redirection or spawning a process to be concise. tar zcvf tarball.tar.gz -T <(file_name_generator_function_or_process) Or echo /etc/hosts | tar zcvf tarball.tar.gz -T- I'm long in the tooth enough to remember when tar on SunOS was used for system and data backups to SCSI tape drives.