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

Re: does anybody have an incron based backup script?



On Mon, Apr 19, 2010 at 18:39, Arian Kuschki
<arian.kuschki@googlemail.com> wrote:
> On Mon 19, 17:31 +0100, Johan Brinch wrote:
>> Create a new archive and delete the old afterwards.
>> It has the same effect.
>
> My idea was to run tarsnap either every time a file in a certain
> directory is changed, or at least say every five minutes or so. If I
> tell tarsnap to create a new archive containing the entire folder every
> time a single file inside that folder is changed, tarsnap will have to
> look at the entire directory to determine which files need to be uploaded
> and which ones already exist in my tarsnap account. But this defeats the
> purpose of using incron in the first place: I want incron to tell
> tarsnap which files to backup, so that I don't incur the overhead of
> tarsnap checking every single file over and over again. This is because
> incron already knows which files to update, because it is monitoring the
> file system for changes.

I see.. Should have read up on incron before answering ;)
But it is quite likeyly, that running tarsnap every 5 minutes or so
will keep your file stats cached.

Unless your system is huge?

Of course, tarsnap would be able to run faster if it already knew what
was changed.
Don't know how much it would change, if the stats are cached.

-- 
Johan Brinch