[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: does anybody have an incron based backup script?
- To: tarsnap-users@tarsnap.com
- Subject: Re: does anybody have an incron based backup script?
- From: Johan Brinch <zerrez@gmail.com>
- Date: Mon, 19 Apr 2010 19:06:43 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=Bha806Nqihopm2VfNczrWIJ6LUZWxFqqURkaT7/vkAERk07P98oJttgPKlW7s0Zc/T pGL+L6HPhxbFQ7+3kmPyWSld+7Je8mqsRDEpOgJ15dc99/EZHErpER+BdjfIpGkyCVz0 M9sX9Tco+NnwkOR7LuHJoopTVJib4vz38shZY=
- In-reply-to: <20100419173915.GB5749@localhost>
- Mailing-list: contact tarsnap-users-help@tarsnap.com; run by ezmlm
- References: <20100419162545.GA5749@localhost> <l2i757b72911004190931rbb9dffbak59968e214f403b0e@mail.gmail.com> <20100419173915.GB5749@localhost>
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