Bacula-users

Re: [Bacula-users] Large maildir backup

2008-11-27 12:23:49
Subject: Re: [Bacula-users] Large maildir backup
From: Jesper Krogh <jesper AT krogh DOT cc>
To: Kjetil Torgrim Homme <kjetilho AT linpro DOT no>, bacula-users <bacula-users AT lists.sourceforge DOT net>
Date: Thu, 27 Nov 2008 18:21:39 +0100
Kjetil Torgrim Homme wrote:
> Jesper Krogh <jesper AT krogh DOT cc> writes:
> 
>> Can you give us the time for doing a tar to /dev/null of the fileset.
>>
>> time tar cf /dev/null /path/to/maildir
>>
>> Then we have a feeling about the "actual read time" for the file of
>> the filesystem.
> 
> if you're using GNU tar, it will *not* read the files if you dump to
> /dev/null.  it will simply stat the files as necessary (you can check
> this with strace if you like.)

Thanks The numers actually surprised me when posted. I usually do a

tar cf - /path | pv > /dev/null

pv prints the speed of the stream, so I dont have to wait for it to 
complete to get a feeling.

> use /dev/zero to avoid this optimisation.

Thank, nice tip.

-- 
Jesper

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>