bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] Monthly backup doesn't expand files, but which are in the


From: Tim Kientzle
Subject: Re: [Bug-tar] Monthly backup doesn't expand files, but which are in the archive
Date: Mon, 29 Aug 2016 12:19:30 -0700

> On Aug 29, 2016, at 6:13 AM, Steffen Nurpmeso <address@hidden> wrote:
> 
> I've changed it back to how it was all the time, and only use "|
> xargs -0 tar -r -f $ar", adding the compression step later on.

The -r option is pretty expensive; it has to read the entire existing archive 
from the beginning to identify the end of the last entry, then it can write new 
entries from that point (overwriting any final padding).

If you want to select the files with a separate mechanism, then you really 
should use -I or -T or list= or other equivalent option (depending on the 
particular tar implementation you're using).

(Also, be careful to not include directories in your generated file list -- tar 
by default will walk those directories and include all the contents, which can 
result in many duplicate copies.)

Cheers,

Tim




reply via email to

[Prev in Thread] Current Thread [Next in Thread]