Re: Hard links - How do they work

2024-02-19 Thread Dan Ritter
Keith Bainbridge wrote: > As promised: > I said sometime in this thread that timeshift (and Back in Time) use hard > links to create progressive copies of the system. The more I think about how > hard links reportedly work, I reckon it can't be simply hard links. > > So I&

Re: Hard links - How do they work

2024-02-18 Thread Keith Bainbridge
On 19/2/24 11:15, Kushal Kumaran wrote: Have you read their FAQ page about hard links? https://github.com/bit-team/backintime/blob/dev/FAQ.md#how-do-snapshots- with-hard-links-work Very interesting. Thank you I have totally missed the concept of copying all files as a starting point. I

Re: Hard links - How do they work: TANSTAAFL

2024-02-18 Thread Charles Curley
On Sun, 18 Feb 2024 16:15:01 -0800 Kushal Kumaran wrote: > Have you read their FAQ page about hard links? > https://github.com/bit-team/backintime/blob/dev/FAQ.md#how-do-snapshots-with-hard-links-work An excellent writeup. The only thing I would add is that creating a hard link does requ

Re: Hard links - How do they work

2024-02-18 Thread Kushal Kumaran
On Mon, Feb 19 2024 at 10:52:16 AM, Keith Bainbridge wrote: > As promised: > I said sometime in this thread that timeshift (and Back in Time) use > hard links to create progressive copies of the system. The more I > think about how hard links reportedly work, I reckon it can't

how to find all hard links of the same file

2008-09-14 Thread T o n g
Hi, If the hard link field of a file is more than one, how can I find out all the other hard links to this file? thanks -- Tong (remove underscore(s) to reply) http://xpt.sourceforge.net/techdocs/ http://xpt.sourceforge.net/tools/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a

Re: Finding hard links

2006-10-17 Thread T
On Tue, 17 Oct 2006 15:46:46 -0700, Bob McGowan wrote: >> Is it possible to find the hard links of the same file? Ie, group the >> above finding into same file groups? > > find . -type f -links +1 -ls | sort -n -k 1 > > This command line will [...] Bingo! thanks

Re: Finding hard links

2006-10-17 Thread Bill Marcum
On Tue, Oct 17, 2006 at 04:45:05PM -0400, T wrote: > Hi > > How can I find hard linked files? > > Is it possible to find the hard links of the same file? Ie, group the > above finding into same file groups? > Use stat or 'ls -i' to find the file's inode num

Re: Finding hard links

2006-10-17 Thread Bob McGowan
T wrote: Hi How can I find hard linked files? Is it possible to find the hard links of the same file? Ie, group the above finding into same file groups? thanks find . -type f -links +1 -ls | sort -n -k 1 This command line will find all regular files (-type f) that have 2 or more hard

Re: Finding hard links

2006-10-17 Thread Jon Dowland
On Tue, Oct 17, 2006 at 04:45:05PM -0400, T wrote: > Hi > > How can I find hard linked files? All "regular" files are hard links. See <http://en.wikipedia.org/wiki/Hard_link> the stat(1) command tells you how many files point at a given inode (so, if "Links:"

Re: Finding hard links

2006-10-17 Thread Daniele P .
On Tuesday 17 October 2006 22:45, T wrote: > Hi > > How can I find hard linked files? Hi, using for example: [ "`stat -c %h filename`" -gt 1 ] && echo hard linked > Is it possible to find the hard links of the same file? Ie, group the > above finding into

Re: Finding hard links

2006-10-17 Thread Roberto C. Sanchez
On Tue, Oct 17, 2006 at 04:45:05PM -0400, T wrote: > Hi > > How can I find hard linked files? > Anything that is a file is a hard link. Regards, -Roberto -- Roberto C. Sanchez http://people.connexer.com/~roberto http://www.connexer.com signature.asc Description: Digital signature

Finding hard links

2006-10-17 Thread T
Hi How can I find hard linked files? Is it possible to find the hard links of the same file? Ie, group the above finding into same file groups? thanks -- Tong (remove underscore(s) to reply) http://xpt.sourceforge.net/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of

Re: Hard links to directories

2005-09-06 Thread Maximillian Murphy
e that if I delete a file, it isn't actually deleted until some backup hard links automatically expire 24 hours later, time enough to recover from disasters. Some of these mechanisms use scripts and soft links, others use hard links. I'm loth to lose the hard link capability or to h

Re: Hard links to directories

2005-09-05 Thread Michael Spang
Hubert Chan wrote: On Sun, 4 Sep 2005 15:40:58 +0100 (BST), Max <[EMAIL PROTECTED]> said: Dear All, Is there a way of switching on permission to have hard links to directories? Is there a rationale for disallowing this? The Linux kernel VFS does not allow directory hard

Re: Hard links to directories

2005-09-04 Thread Hubert Chan
On Sun, 4 Sep 2005 15:40:58 +0100 (BST), Max <[EMAIL PROTECTED]> said: > Dear All, Is there a way of switching on permission to have hard links > to directories? > Is there a rationale for disallowing this? The Linux kernel VFS does not allow directory hard links for technical

Hard links to directories

2005-09-04 Thread Max
Dear All, Is there a way of switching on permission to have hard links to directories? Is there a rationale for disallowing this? What I'm trying to do is to set up my file system so that, rather as with apt-get, files and entire directories survive only as long as they are wanted. W

Copying directory containing internal hard links to other partition

2005-07-17 Thread B-Fly
I want to move a directory containing my backups (created by faubackup) to another directory on a different partition. The problem is that the backup directory contains a lot of hard links (to files inside the same backup directory). Simply copying the directory with 'cp -R' replace

Re: A direct way to find hard links?

2005-06-22 Thread Andrey Andreev
Adam Funk wrote: > For a given, specific path/file X, I know that X is one of the pointers to > inode Y, and I want to find the other path/filenames that point to the same > inode Y. Is there any efficient way to make a command like the following? > $ list_all_hard_links /path/to/x Oh, I see. W

Re: A direct way to find hard links?

2005-06-22 Thread Adam Funk
Andrey Andreev wrote: > Andrey Andreev wrote: >> Adam Funk wrote: >>>When I see in a listing that a file has one or more other hard links, for >>>example: >>>is there any direct way to find the other /path/to/files that point to >>>the same inodes?

Re: A direct way to find hard links?

2005-06-22 Thread Andrey Andreev
Andrey Andreev wrote: > Adam Funk wrote: >>When I see in a listing that a file has one or more other hard links, for >>example: >>is there any direct way to find the other /path/to/files that point to the >>same inodes? > Something like in bash: > > for (( i=

Re: A direct way to find hard links?

2005-06-22 Thread Andrey Andreev
Adam Funk wrote: > When I see in a listing that a file has one or more other hard links, for > example: [snip] > is there any direct way to find the other /path/to/files that point to the > same inodes? Something like in bash: for (( i=2 ; $i < 10 ; i = $i +1 )) ; do find . -link

Re: A direct way to find hard links?

2005-06-22 Thread Andy Smith
try/this/path -inum 1234 > > but the find would be fairly time-consuming unless you already had a good > idea about where to look. Hmm I can't think of another way off the top of my head, but be aware that hard links can only be to the same filesystem, so you can reduce the time by li

A direct way to find hard links?

2005-06-22 Thread Adam Funk
When I see in a listing that a file has one or more other hard links, for example: $ ls -l ... -rw--- 3 jfunk jfunk0 2005-06-22 11:45 bar -rw--- 2 jfunk jfunk0 2005-06-22 11:46 foo ... is there any direct way to find the other /path/to/files that point to the same inodes

Re: SOLVED: idiosyncratic "ln" not making hard links

2002-10-11 Thread Herbert Xu
Elizabeth Barham <[EMAIL PROTECTED]> wrote: > > shelby:~# touch x > shelby:~# ln x y > > Well it works now. Thank you everyone!! There is a known bug in the 2.4 VFS where if you attempt to open a bad inode on your file system, then all further attempts to do operations like ln on anything will

Re: quoting (was: idiosyncratic "ln" not making hard links)

2002-09-25 Thread Jamin W . Collins
On Wed, 25 Sep 2002 22:01:52 +0200 martin f krafft <[EMAIL PROTECTED]> wrote: > also sprach Mark L. Kahnt <[EMAIL PROTECTED]> [2002.09.25.1953 > +0200]: > > > > > > > | :~$ touch k > > > > > > > | :~$ ln k y > > > > I'm going to toss in a *wild* question, but given that the actual link > > attem

quoting (was: idiosyncratic "ln" not making hard links)

2002-09-25 Thread martin f krafft
also sprach Mark L. Kahnt <[EMAIL PROTECTED]> [2002.09.25.1953 +0200]: > > > > > > | :~$ touch k > > > > > > | :~$ ln k y > > I'm going to toss in a *wild* question, but given that the actual link > attempt is failing, this wandered through the chasm I use as a mind: in that case, please don't t

Re: idiosyncratic "ln" not making hard links

2002-09-25 Thread Vineet Kumar
* Mark L. Kahnt ([EMAIL PROTECTED]) [020925 10:55]: > On Wed, 2002-09-25 at 13:34, Vineet Kumar wrote: > > * Elizabeth Barham ([EMAIL PROTECTED]) [020925 09:24]: > > > link("k", "y") = -1 ENOENT (No such file or directory) > I'm going to toss in a *wild* question, but give

SOLVED: idiosyncratic "ln" not making hard links

2002-09-25 Thread Elizabeth Barham
Vineet Kumar <[EMAIL PROTECTED]> writes: > > I did have some sporadic memory errors with this machine but corrected > > them although I have not run memtest in a while (the mmap). > > This could be it; it does do some 'mmap'ing, so memory errors could be > affecting it. They can affect everythin

Re: idiosyncratic "ln" not making hard links

2002-09-25 Thread Mark L. Kahnt
On Wed, 2002-09-25 at 13:34, Vineet Kumar wrote: > * Elizabeth Barham ([EMAIL PROTECTED]) [020925 09:24]: > > "Noah L. Meyerhans" <[EMAIL PROTECTED]> writes: > > > > > --zOcTNEe3AzgCmdo9 > > > Content-Type: text/plain; charset=us-ascii > > > Content-Disposition: inline > > > Content-Transfer-Enco

Re: idiosyncratic "ln" not making hard links

2002-09-25 Thread Vineet Kumar
* Elizabeth Barham ([EMAIL PROTECTED]) [020925 09:24]: > "Noah L. Meyerhans" <[EMAIL PROTECTED]> writes: > > > --zOcTNEe3AzgCmdo9 > > Content-Type: text/plain; charset=us-ascii > > Content-Disposition: inline > > Content-Transfer-Encoding: quoted-printable > > > > On Wed, Sep 25, 2002 at 10:33:1

Re: idiosyncratic "ln" not making hard links

2002-09-25 Thread Elizabeth Barham
"Noah L. Meyerhans" <[EMAIL PROTECTED]> writes: > --zOcTNEe3AzgCmdo9 > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Wed, Sep 25, 2002 at 10:33:15AM -0500, Elizabeth Barham wrote: > > > | :~$ touch k > > > | :~$ ln k

Re: idiosyncratic "ln" not making hard links

2002-09-25 Thread Bob Proulx
Elizabeth Barham <[EMAIL PROTECTED]> [2002-09-25 10:33:15 -0500]: > > | :~$ ln --version > > | ln (fileutils) 4.1 > Any idea of what might be causing ln not to work correctly on my > system? In addition to 'strace ln k y' use the -v option to have it verbosely say what it is doing. rm -rf /tmp

Re: idiosyncratic "ln" not making hard links

2002-09-25 Thread Noah L. Meyerhans
On Wed, Sep 25, 2002 at 10:33:15AM -0500, Elizabeth Barham wrote: > > | :~$ touch k > > | :~$ ln k y > > Any idea of what might be causing ln not to work correctly on my > system? Try running strace on it: strace ln k y Look for indications of obvious brokeness. And, as has been said already,

Re: idiosyncratic "ln" not making hard links

2002-09-25 Thread Alan Shutko
Elizabeth Barham <[EMAIL PROTECTED]> writes: > Any idea of what might be causing ln not to work correctly on my > system? Check for kernel oopses and run fsck on the filesystem. -- Alan Shutko <[EMAIL PROTECTED]> - In a variety of flavors! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with

Re: idiosyncratic "ln" not making hard links

2002-09-25 Thread Elizabeth Barham
Jamin W.Collins <[EMAIL PROTECTED]> writes: > | :~$ touch k > | :~$ ln k y > | :~$ ln --version > | ln (fileutils) 4.1 > | Written by Mike Parker and David MacKenzie. > | > | Copyright (C) 2001 Free Software Foundation, Inc. > | This is free software; see the source for copying conditions. Ther

Re: Hard links

2000-05-24 Thread William T Wilson
On Thu, 25 May 2000, Sven Burgener wrote: > > >> 108545 drwxr-xr-x 21 root root 1024 Feb 19 17:34 usr > > ... I assumed that the hard links theory of files applies to directories > in the very same way. That would mean that - if it were possible - there >

Re: Hard links

2000-05-24 Thread Sven Burgener
The thing is that from this listing: >> 108545 drwxr-xr-x 21 root root 1024 Feb 19 17:34 usr ... I assumed that the hard links theory of files applies to directories in the very same way. That would mean that - if it were possible - there are 21 [hard] links to /usr somewh

Re: Hard links

2000-05-24 Thread William T Wilson
On Wed, 24 May 2000, Sven Burgener wrote: > 108545 drwxr-xr-x 21 root root 1024 Feb 19 17:34 usr > > and now I issue: > > hp90:/root # find / -inum 108545 > /usr > > All I got is /usr! How can that be explained? I must be missing Well, the inode for /usr is 108545, so when you se

Re: Hard links

2000-05-24 Thread brian moore
On Wed, May 24, 2000 at 11:16:42PM +0200, Sven Burgener wrote: > >"ls -il" gives you the inode-numbers, so you'll see, which files are > >hard-linked. > >if you need to search the whole disk, then you want to use > "find -inum". > > Yes, that works. But only for some files I created for this test

Re: Hard links

2000-05-24 Thread Sven Burgener
>"ls -il" gives you the inode-numbers, so you'll see, which files are >hard-linked. >if you need to search the whole disk, then you want to use "find -inum". Yes, that works. But only for some files I created for this test just now. Assume I try to do it for /usr: 108545 drwxr-xr-x 21 root

Re: Hard links

2000-05-24 Thread Oswald Buddenhagen
> In an ls -l you get the # of hard links on the right side of the > permissions. How do I find where all of those hard links are located on > the harddisk? > "ls -il" gives you the inode-numbers, so you'll see, which files are hard-linked. if you need to search the w

Hard links

2000-05-24 Thread Sven Burgener
Hi debians In an ls -l you get the # of hard links on the right side of the permissions. How do I find where all of those hard links are located on the harddisk? TIA Sven

Re: soft links vs hard links (was Re: duplicate binaries)

1999-02-08 Thread John Hasler
dan writes: > Shouldn't files like egrep and fgrep be symbolic links to grep, and same > for any other program like this? I wrote: > What's wrong with hard links for this? > If you have hard links, and replace one of them, you still need to > replace the other one, sin

soft links vs hard links (was Re: duplicate binaries)

1999-02-08 Thread E.L. Meijer \(Eric\)
> > dan writes: > > Shouldn't files like egrep and fgrep be symbolic links to grep, and same > > for any other program like this? > > What's wrong with hard links for this? If you have hard links, and replace one of them, you still need to replace the other

Re: Hard links to a directory in a chroot environment

1997-09-25 Thread Philippe Troin
1. Entries . and .. are removed. 2. The directory inode is unlinked from the parent's directory entry. Having a hard link to a directory gives a first problem: Say you do: mkdir /usr/dir1 link /usr/dir1 /usr/local/dir1 (hard links /usr/dir1 to /usr/local/dir1) Then if you do c

Re: Hard links to a directory in a chroot environment

1997-09-24 Thread joost witteveen
[..] > Hard linked directories are bad, it would taker longer than that to explain. That's apity, cause I've been wanting to know why they are bad for a long time. Do you have any reference where I can search for an answer on that one? > For maximum security in chrooted environments: > o don't

Re: Hard links to a directory in a chroot environment

1997-09-24 Thread Philippe Troin
e directory to a common directory that they can all read/write to. > > I'm using wu-ftpd, ext2fs file system and debian 1.3. This should work > according to the documentation that I've read. But apparently ext2fs does > not allow hard links to directories. Is this true? Is there an

Hard links to a directory in a chroot environment

1997-09-23 Thread Al Youngwerth
and debian 1.3. This should work according to the documentation that I've read. But apparently ext2fs does not allow hard links to directories. Is this true? Is there any other way to implement this? Thanks in advance, Al Youngwerth [EMAIL PROTECTED] -- TO UNSUBSCRIBE FROM THIS MAILING L