|
Re: disk space usage: msg#00004sysutils.backup.rsnapshot.general
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> |
|---|---|---|
| Previous by Date: | Re: Links, oh my!: 00004, Chris Petersen |
|---|---|
| Next by Date: | Re: quoted string: 00004, 'David Cantrell' |
| Previous by Thread: | Links, oh my!i: 00004, Ben Lake |
| Next by Thread: | Re: quoted string: 00004, 'David Cantrell' |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |