From: Heinz-Josef Claes Subject: Re: more about links (was Re: A bold idea (Re: Carrying Attributes too Far)) Date: Thu, 11 Dec 2003 12:35:27 +0100 Sender: hjclaes@web.de Message-ID: <1071142526.2770.6.camel@schlappix.schnulli.de> References: <1065247084.3f7e616c94ec9@webmail.st-andrews.ac.uk> <3FCE3716.8000509@namesys.com> <1070584227.3fcfd1a3d67f4@webmail.st-andrews.ac.uk> <3FD00272.7040607@ninja.dynup.net> <1070617453.5605.13.camel@schlappix.schnulli.de> <3FD4E50D.6070805@nrao.edu> <1070956991.3579.12.camel@schlappix.schnulli.de> <3FD68106.7050800@ninja.dynup.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com In-Reply-To: <3FD68106.7050800@ninja.dynup.net> List-Id: Content-Type: text/plain; charset="us-ascii" To: David Masover Cc: reiserfs-list@namesys.com Am Mi, 2003-12-10 um 03.12 schrieb David Masover: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Heinz-Josef Claes wrote: > > >Am Mo, 2003-12-08 um 21.54 schrieb Boyd Waters: > > > > > >>-----BEGIN PGP SIGNED MESSAGE----- > >>Hash: SHA1 > >> > >>Heinz-Josef Claes wrote: > >> > >>| I think hard linking directories is a very good idea. The should be a > >>| count for the number of hard links and it should be handled like with > >>| normal files. I directly have an application with would have a great > >>| benefit of this kind of hard linked directories, but up to now they are > >>| not available in linux :-( > >> > >>I use > >> > >>mount -o bind path/to/subdirectory path/to/mountpoint > >> > >>as a sort-of "hard-link" directories... > >> > >> > >> > >Yes, that would look a little bit like a hard link. But I want to use it > >as a possiblity for my backup tool (see below). It makes a backup to > >another hard disk and hard links to files with a contents which is > >already in the backup. If a hole directory had not changed, I could make > >a link to the previous one and that's all. Now I have to mkdir the > >directories and hard link every single file. I could use much less space > >if there were an op > > > If a symlink really won't work for you, have the whole directory be a > hardlink farm. Trust me, it's cleaner that way. > > My backup system involves using rsync to do that -- first I do a 'cp > - -al' from the old generation dir to the new one. Then I rsync over my > current files. Only the files that have changed are updated. > > If that still isn't enough, use symlinks. Some things which used to be > hardlinks on my distro have been changed to symlinks, and I like the change. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.3 (GNU/Linux) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > Hi, if I would use symlinks, I'll run into problems when deleting. With a symlink, I have the original file and a pointer to that file. That's quite different from having hard links, where the file (or in this case the whole directory) will be deleted if the last link is removed. Using mount does not change this behavior. If I delete an old backup, the whole (shared) directory is deleted for *all* backups. If you want to see what's possible with deletition strategies, take a look at www.sf.net/projects/storebackup. These will not work with symlinks or multiple mount points. So hard links to a directory would be a very useful feature for my use case. Regards, Heinz-Josef Claes