Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding files with hard links



On Jan 25, 2007, at 2:18 PM, Jacob White wrote:

The command looks about like this rsync --link-dest=/path/to/ yesterday server:/Users /path/to/today

So thats making fake these fake hard links. And now I want to write just the files that have a single hard link to tape. Is there any way to do that?

ls -l will show the number of links on a file (it's the column just after the permissions).


Also, the "find" command has a flag called "-links" that will find files that only have the given number of links. So, if you search for files with only 1 link, that should be the files that have changed, and aren't just links to earlier files. For example:

    find /path/to/today -links 1

Jason

--
Jason Healy    |    email@hidden    |   http://www.logn.net/



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden
References: 
 >Finding files with hard links (From: Jacob White <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.