Re: More on daily backups..

Miek Gieben <[email protected]> Wed, 21 Jan 2004 15:15:18 +0100
Newsgroups gmane.comp.sysutils.backup.hdup.general
Message-ID <[email protected]>
[On 21 Jan, @15:08, James wrote in "Re[2]: [hdup-user] More on dai ..."]
> MG> well using a short C program which utilizes that stat call, you can
> MG> set it to whatever you want (I guess). So prerun, becomes: dump + restat,
> 
> It turned out to be not that hard to modify the tar source to ignore
> the change date, which is definitely easier for me than my very rusty
> C skills. Its actually a bit odd, because the various places where it
> checks the change date are usually conditional on one or two different
> options. But the description of the option -g didn't make a lot of
> sense to me and it seemed a simple solution to make a special "hdup"
> version of tar to suit my purposes.
> 
> Anyway, seems to work fine as long as there aren't any other
> unintended consequences (e.g. things not being backed up that
> should...) but it appears to be doing what it should. The daily from
> yesterday was 17 meg versus a typical 75 meg! All I have left is to
> fix a couple un-rotated web server logs and I bet I'll be below 10
> meg.

what you also can do if you worry about the unexpected side consequences is to
make a fake database host in hdup.conf:

[hostname-database]
tar = /my/hacked/tar/version
dirs = /database/files

and use that host for the database backup. For the other backup
you can still use the normal host directive and maybe exclude the
database directory,

grtz Miek