[Dirvish] dirvish not making hard links but copying files, consuming much space

Team Bloombox dirvish at bloombox.de
Sun Jun 11 14:55:00 UTC 2006


Hi Eric,

the script runs as root. It's a debian package installation. Debian put's
the following cron script into cron.d:

# run every night
4 23 * * *     root     /etc/dirvish/dirvish-cronjob

I just found out another thing, which needs to be mentioned, I guess. On
another system, which also runs dirvish and which makes a backup of the
nemesis41 webserver too (the one which is causing the problem) the backup
just runs fine. It only consumes about 100MB per run as proposed by dirvish.
And as far as I can see: No files are missing and only changed files are
backuped ...
And I think the issue belongs to that very special machine .... :-(

Best regards,
Jens

> -----Original Message-----
> From: dirvish-bounces at dirvish.org 
> [mailto:dirvish-bounces at dirvish.org] On Behalf Of Eric Mountain
> Sent: Sunday, June 11, 2006 4:47 PM
> To: Dirvish user and developer mailing list
> Subject: Re: [Dirvish] dirvish not making hard links but 
> copying files,consuming much space
> 
> On Sunday 11 June 2006 12:18, Team Bloombox spake thus:
> 
> 
> > nemesis41:/backup/dirvish/n41/20060603-2304# dirvish-locate n41 
> > apache2.conf ###
> > 2 matches in 11 images
> > /etc/apache2/apache2.conf
> >     Aug  8  2005 20060609-2304
> >     Aug  8  2005 20060608-2304
> >     Aug  8  2005 20060607-2304
> >     Aug  8  2005 20060606-2304
> >     Aug  8  2005 20060605-2304
> >     Aug  8  2005 20060604-2304
> >     Aug  8  2005 20060603-2304
> >     Aug  8  2005 20060602-2304, 20060602-0958, 20060602-0912, 
> > 20060602-0852
> 
> As which user did the 4 dirvish runs on the bottom line run 
> as?  root?  And the others?
> 
> 
> >
> > ###
> > STAT-Runs
> > ###
> >
> > nemesis41:/backup/dirvish/n41/20060602-2304# stat
> > tree/etc/apache2/apache2.conf
> >   File: ,,tree/etc/apache2/apache2.conf"
> >   Size: 12895           Blocks: 32         IO Block: 4096   
> reguläre Datei
> > Device: 305h/773d       Inode: 8144412     Links: 4
> > Access: (0644/-rw-r--r--)  Uid: ( 1001/tapeback)   Gid: (   
>  0/    root)
> > Access: 2006-06-03 23:05:50.000000000 +0200
> > Modify: 2005-08-08 10:47:00.000000000 +0200
> > Change: 2006-06-02 23:36:34.000000000 +0200
> >
> > nemesis41:/backup/dirvish/n41/20060603-2304# stat
> > tree/etc/apache2/apache2.conf
> > ###
> >   File: ,,tree/etc/apache2/apache2.conf"
> >   Size: 12895           Blocks: 32         IO Block: 4096   
> reguläre Datei
> > Device: 305h/773d       Inode: 10601284    Links: 1
> > Access: (0644/-rw-r--r--)  Uid: ( 1001/tapeback)   Gid: (   
>  0/    root)
> > Access: 2006-06-04 23:06:04.000000000 +0200
> > Modify: 2005-08-08 10:47:00.000000000 +0200
> > Change: 2006-06-03 23:49:43.000000000 +0200
> >
> >
> > and later on:
> >
> > nemesis41:/backup/dirvish/n41/20060609-2304# stat
> > tree/etc/apache2/apache2.conf
> >   File: ,,tree/etc/apache2/apache2.conf"
> >   Size: 12895           Blocks: 32         IO Block: 4096   
> reguläre Datei
> > Device: 305h/773d       Inode: 7606218     Links: 1
> > Access: (0644/-rw-r--r--)  Uid: ( 1001/tapeback)   Gid: (   
>  0/    root)
> > Access: 2006-06-10 23:06:00.000000000 +0200
> > Modify: 2005-08-08 10:47:00.000000000 +0200
> > Change: 2006-06-10 00:05:42.000000000 +0200
> >
> >
> > And guess, what a diff run finds out about differences of both
> > apache2.conf: diff /etc/apache2/apache2.conf
> > /backup/dirvish/n41/20060609-2304/tree/etc/apache2/apache2.conf
> >
> > Right, nothing. :-(
> 
> What is the output of stat for /etc/apache2/apache2.conf?
> 
> In particular, who owns the file?  The backups are owned by 
> "tapeback".  Is 
> this the user that runs the dirvish backups?
> 
> What rsync version are you using? (rsync --version)  If it is 
> less than 2.6.1 
> and you are not running your backups as root, then you may be 
> hitting the bug 
> where -o causes --link-dest to function improperly.
> 
> Cheers,
> Eric
> -- 
> Eric Mountain
> _______________________________________________
> Dirvish mailing list
> Dirvish at dirvish.org
> http://www.dirvish.org/mailman/listinfo/dirvish
> 



More information about the Dirvish mailing list