Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Long running tar command
- X-seq: zsh-users 30083
- From: Dominik Vogt <dominik.vogt@xxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Long running tar command
- Date: Sat, 28 Sep 2024 23:01:35 +0100
- Archived-at: <https://zsh.org/users/30083>
- In-reply-to: <CAH+w=7buPJ-=QH0rCVuqm01PHa57A-RCC3Ohmr4ikefTQG062g@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- References: <ZvdMJAkImbQ6Ziaj@localhost> <CAH+w=7aewUu_EykGngDqoe-LEyrbcKqDF5nV6urhgo9f6-k3Lg@mail.gmail.com> <ZvfL5FQfj1P1LXoz@localhost> <CAH+w=7buPJ-=QH0rCVuqm01PHa57A-RCC3Ohmr4ikefTQG062g@mail.gmail.com>
- Reply-to: zsh-users@xxxxxxx
- Ui-outboundreport: notjunk:1;M01:P0:MbU3ugXOhUg=;No8oDjO6WeK79QFrvZg4pB4eoE3 0Fb9BTMTyMYBrnqh5a8wPAp5SMnzI0ArMGXwNDnyyHeVtv1s8roYQXZyDwpZK/7kOrbOiq6T4 /H8m1tEAi1guDiyMqFsjhoK/xxV7pTrC7vEo/CDDgFu74cy1xfiYcD6zOI+n/s/Jk9BaH5I57 /qT49pryM7ZM6lQi1/lnbKSVYNlZ72hPJE9XGdKY+2dNOfm9D6/ru4gO8tEMW+idTXAAwh5Dx /qNTK+zWzJOLqXhtuquDsdJkfn9j+Ju9Pe75ta+XziyxYdt8AkvSqdYQkYg4mO6c1veG2PCAu LzSJKWLCT0sgv5l+8Qc34CiX895UfJanCMEymWHOuCh9PMQCYg2EuPsrau+H6srA7dXTMdkOK UF9q1bT2jdtVxnppVPlb0dx+6/Dly4OFzpWedJ5Hwc6IsODHk7uGTRbcc1Ago/OzFeEe6Phnf j9HV2yNmTBx5aLXXm978nUFC6LLFKeeiPc8Lc2uEFS4QvRwrMyDvqT7r7TWJwtzxF6WzWg3r9 FPNmWDTRt823psQzqaDaIWo+VUNMTLi3rZt/wQwUPQ/Q2K9MBuT5NywlUp+vmWTMGbZbFF8be aRWNbk+mh2Ad52Aogp4WrTUt0I3gQHXaPZ+bMBP9TL5aYiR+Tc2L3L0eszN9ZllnaHx+68T28 aA7+s8iP17Iid4iQAUYcyYysIMwMoBtnv+VCKVyNrPanH8RrplXakPXGcCstWl8qXuJB7FuQ4 nOZm0JEcaJtLJYZYRs1+YwUtTlM6Gedsr/UXZHIxX4yWlucAbGo/Ylo5jGSDteo7eDgxcMVNk nKsN7cgaDQLUpTjdH9EtTrdQ==
On Sat, Sep 28, 2024 at 02:39:29PM -0700, Bart Schaefer wrote:
> On Sat, Sep 28, 2024 at 2:52???AM Dominik Vogt <dominik.vogt@xxxxxx> wrote:
> >
> > On Fri, Sep 27, 2024 at 07:10:16PM -0700, Bart Schaefer wrote:
> > >
> > > The --verify pass won't happen until the output file is fully written,
> > > so is it really slower to run a second tar command to do that?
> >
> > I don't think it's slower, but tar has no way of verifying an
> > already existing archive.
>
> I believe
> tar --compare -f dest.tar /data
> would be equivalent to --verify
Anyway, the discussed command has reduced the run time from about
6 hours to 2 hours and 20 minutes in comparison with the old
script that calculated the md5sum in a separate command. That is,
after replacing "> dest.list" with "| gzip -9 > dest.list.gz".
Directly writing to the list file kept the disk head seeking all
the time, completely ruining performance. (Backing up to a hdd.)
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
Messages sorted by:
Reverse Date,
Date,
Thread,
Author