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

Re: does anybody have an incron based backup script?



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.

So it would be really convenient (and in spirit with keeping tarsnap 
consistent with tar) to have an option to append to an existing archive 
instead of having to create a new archive every time tarsnap is invoked.
Or maybe I am just not seeing the right way to solve my problem.