logo       

Re: disk space usage: msg#00004

sysutils.backup.rsnapshot.general

Subject: Re: disk space usage

On Wed, Jun 14, 2006 at 10:24:06AM +0200, J?r?me Paschoud wrote:

> Finally here's the content of the rsnapshotpost script:
> # less rsnapshotpost
> #!/bin/sh
> # A script that is executed after rsnapshot and that change the
> permitions
> # of the backuped directory to 755
> #
> ###### Change permitions recursively to 755 ######
> /bin/chmod -R 755 /share/hdd/data/snapshot/hourly.*

There's your problem. The mode bits are a property of the inode, not of
the directory entry, so next time rsync goes to look at a file whose
mode you've changed, it looks different so gets uploaded again:

$ touch foo
$ ln foo bar
$ ls -il foo bar
819403 -rw-r--r-- 2 cantrelld cantrelld 0 Jul 6 12:38 bar
819403 -rw-r--r-- 2 cantrelld cantrelld 0 Jul 6 12:38 foo

# now try to change mode of just one of those ...

$ chmod 755 bar
$ ls -il foo bar
819403 -rwxr-xr-x 2 cantrelld cantrelld 0 Jul 6 12:38 bar
819403 -rwxr-xr-x 2 cantrelld cantrelld 0 Jul 6 12:38 foo

And why on earth would you want to make everything in your backups
executable - and even worse, executable (and readable) by everyone?

--
David Cantrell | top google result for "internet beard fetish club"

All principles of gravity are negated by fear
-- Cartoon Law V

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise