On Thu, 25 Jan 2007 18:47:55, Jason Healy wrote:
>
> 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
>
It's worth noting that directories always* have more than one hard link,
so you'll have to come up with another way to figure out if a directory is
unchanged.
Patrick
* I can think of one case where a directory would have only one hard link,
but this is trivial.
--
Patrick Schwisow
Web Information Manager
Waukegan Public School District 60
http://www.waukeganschools.org/
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
_______________________________________________
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