Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Long running tar command
- X-seq: zsh-users 30077
- From: Dominik Vogt <dominik.vogt@xxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Long running tar command
- Date: Sat, 28 Sep 2024 01:21:56 +0100
- Archived-at: <https://zsh.org/users/30077>
- List-id: <zsh-users.zsh.org>
- Mail-followup-to: Zsh Users <zsh-users@xxxxxxx>
- Reply-to: zsh-users@xxxxxxx
- Ui-outboundreport: notjunk:1;M01:P0:kqLmqle8Nvc=;JexixdfoniLBsb0mRakji7t+e0K NzHHOm7q1Cn2aUD3u5rCMhNenbLFzXYiwmmN/Te/4Qux3BAUsydnVK9nAL1JP7h0pI6/NHzwT rDo36A8m6EtPBKfwYJdN+8dpeN0D4kmnAAFxqnHvnELhkBCPQdQfN273M2S9OWwimnv79wfs+ muUK6vZUXvAofPe9ImlFLhfKdwH2Fk/y+NjPFj5JwnrN11o2ZV2JtLGA5o1m6E5X7QnMyszhK laWebaaikhV1iNl3pPBbRYcBDNX7NRVo3jit8SyY/raPQVU1o6GPlbTm8Td2pf6X77xRqlXIg 64N9NHO/UU5m2+gN60Kj/i5m9WfVaOGe5kYs72GBhui/gvyzr59M6IDtlm69aWl7k53dAJ9eW MnvZeqDsJi9XieKeUN0dnF1/Z7kMu3P+XfHAgFUSH6YK0AqL1g8LHBEHYRyTBSTyT8MmhLUum HE4FkU+MZaFx7WLdkuFlTVFyY+WMMVZ9LJU2FD47D5w0MyT6yqhfkaKljwEwg42uq0Z6BL/2h 0zSUQkrfvSJoeIgoG5bhHJ6nF3XrsCYc940Ni4gGmE6KoH0BeDcdzWoHW3lYlD+NUhY2cnDbU hCSvDY7n5x3iwGepEM091QcmCTrvJCGtUzuDnuEQy9Egc6nHGtVWcbQNgxh6df+kcWRgeh9a/ hdqfwNqhzNlDamZ/P9j9irx573jJpwVurIfEKYhg/CIBRghKRK8SEnj1oDA8/Vkp7VlGWGXZy bfxmppYMJt/yip803IzN2tG2CKPax1KX4uqtbM32uorRz+qOP5s6tJHYfMUSKJn3hBXwqOUKk CFLoCyGPTrAmCL+RY+10heiw==
There is this tar commands that takes many hours to complete:
setopt multios
tar c -v -f >(tee dest.tar | md5sum > dest.md5) /data > dest.list
- Write tar file to dest.tar
- Calculate the md5sum and write it to des.md5
- Write an index to stdout (redirected to dest.list) (-v option)
This is all done in a single command to save time.
I'd also like to use the --verify tar option, but that does not
work because ">(...)" is not a seekable file descriptor. Any idea
how to get around this limitation?
(This _could_ be done by running md5sum in a separate command, but
that takes another couple of hours to complete.)
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
Messages sorted by:
Reverse Date,
Date,
Thread,
Author