Re: Skipping hardlinks in a copy

2007-03-09 Thread Phil Howard
On Thu, Mar 08, 2007 at 01:34:03PM -0800, Sriram Ramkrishna wrote: | OK, I wasn't aware that you couldn't hardlink a directory to another | directory. You're not supposed to be able to. But some systems allow it in a restricted manner just for very special issues such as recovery of an otherwise

Re: Skipping hardlinks in a copy

2007-03-08 Thread Sriram Ramkrishna
On Thu, Mar 08, 2007 at 10:14:39AM -0800, Wayne Davison wrote: > On Wed, Mar 07, 2007 at 09:22:08PM -0800, Sriram Ramkrishna wrote: > > Is there a way to have it skip hard links when doing an rsync? > > If you mean you want to skip any file that has more than one link, you > could do this: > >

Re: Skipping hardlinks in a copy

2007-03-08 Thread Sriram Ramkrishna
On Thu, Mar 08, 2007 at 10:15:01PM +0100, Paul Slootman wrote: > On Thu 08 Mar 2007, Sri Ramkrishna wrote: > > > > I think I probably hard links to directories. I have observed cpio > > going through a loop continously. Since I was doing this on an AIX > > JFS filesystem (on an AIX fileserver) i

Re: Skipping hardlinks in a copy

2007-03-08 Thread Paul Slootman
On Thu 08 Mar 2007, Sri Ramkrishna wrote: > > I think I probably hard links to directories. I have observed cpio > going through a loop continously. Since I was doing this on an AIX > JFS filesystem (on an AIX fileserver) it might not have same protections > that I believe Linux when hitting a c

Re: Skipping hardlinks in a copy

2007-03-08 Thread Sri Ramkrishna
On Wed, Mar 07, 2007 at 09:22:08PM -0800, Sriram Ramkrishna wrote: Hi there, For some reason, I sent this mail before I was fully subscribed and I have missed out on the replies. If I don't answer all the responses this is why. > The following command pipeline can give you a list which you cou

Re: Skipping hardlinks in a copy

2007-03-08 Thread Wayne Davison
On Wed, Mar 07, 2007 at 09:22:08PM -0800, Sriram Ramkrishna wrote: > Is there a way to have it skip hard links when doing an rsync? If you mean you want to skip any file that has more than one link, you could do this: find . -type f -links +1 >/path/exclude.txt Then, you'd use the exclude.tx

Re: Skipping hardlinks in a copy

2007-03-08 Thread Phil Howard
On Wed, Mar 07, 2007 at 09:22:08PM -0800, Sriram Ramkrishna wrote: | Hi folks, I've been googling around for awhile but I can't seem to find | an answer to my question. | | I have a number of filesystems that contain thousands of hard links due | to some bad organization of data. Rsync, cpio an

Re: Skipping hardlinks in a copy

2007-03-08 Thread Paul Slootman
On Wed 07 Mar 2007, Sriram Ramkrishna wrote: > that are hard links. Then after the copy is finished, I will use some > kind of find . -type l type command that finds the hard links and then find -type l will find symbolic links, *not* hard links. Paul Slootman -- To unsubscribe or change opti

Re: Skipping hardlinks in a copy

2007-03-08 Thread Eur Ing Chris Green
On Wed, Mar 07, 2007 at 09:22:08PM -0800, Sriram Ramkrishna wrote: > Hi folks, I've been googling around for awhile but I can't seem to find > an answer to my question. > > I have a number of filesystems that contain thousands of hard links due > to some bad organization of data. Rsync, cpio and

Skipping hardlinks in a copy

2007-03-07 Thread Sriram Ramkrishna
Hi folks, I've been googling around for awhile but I can't seem to find an answer to my question. I have a number of filesystems that contain thousands of hard links due to some bad organization of data. Rsync, cpio and various other utilities fail to copy this data because I think there might b